Package org.auraframework.service

Examples of org.auraframework.service.ContextService.endContext()


            } catch (Throwable t) {
                System.err.println("Failed to load component tests for namespace: " + namespace);
                t.printStackTrace();
            } finally {
                if (contextStarted) {
                    contextService.endContext();
                }
            }
        }
    }
View Full Code Here


            }
            try {
                return descriptor.getDef().getCode();
            } finally {
                if (!isEstablished) {
                    contextService.endContext();
                }
            }
        }
    }
View Full Code Here

    protected void injectComponent(String tag, Map<String, Object> attributes, String localId, String locatorDomId,
            Appendable out, boolean useAsync, String applicationTag) throws AuraRuntimeException, QuickFixException, IOException {
        ContextService contextService = Aura.getContextService();
        AuraContext ctx = contextService.getCurrentContext();
        contextService.endContext();

        Integration integration = Aura.getIntegrationService().createIntegration(
                "", Mode.DEV, true, null, applicationTag, null);
        integration.injectComponent(tag, attributes, localId, locatorDomId, out, useAsync);
View Full Code Here

    protected void setupValidateReferences() throws Exception {
        super.setupValidateReferences();
       
        ContextService contextService = Aura.getContextService();
    if (testAuraContext != null) {
            contextService.endContext();
        }
       
        testAuraContext = contextService.startContext(Mode.UTEST, Format.JSON, Authentication.AUTHENTICATED);
    }
View Full Code Here

        assertFalse(p.isEstablished());
        contextService.startContext(Mode.DEV, Format.JSON, Authentication.AUTHENTICATED);
        assertTrue(p.isEstablished());
        assertNotNull(p.getCurrentContext());

        contextService.endContext();
        assertFalse(p.isEstablished());
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.