Package org.auraframework.instance

Examples of org.auraframework.instance.Application


     */
    public static void main(String[] args) {
        try {
            Aura.getContextService().startContext(Mode.PROD, Format.HTML, Authentication.UNAUTHENTICATED);
            String tag = args[0];
            Application app = Aura.getInstanceService().getInstance(tag, ApplicationDef.class);
            Aura.getRenderingService().render(app, System.out);
            System.out.println();
        } catch (Exception e) {
            log.fatal(e.getClass() + ": " + e.getMessage(), e);
            System.exit(1);
View Full Code Here


                } finally {
                    reader.close();
                }
            }

            Application instance = instanceService.getInstance(def, null);

            // Get the preload js
            File js = new File(outputDir, String.format("%s.js", appName));
            FileWriter jsWriter = new FileWriter(js);
            try {
View Full Code Here

            }

            attributes.put("auraScriptTags", sb.toString());
            Map<String, Object> auraInit = Maps.newHashMap();

            Application instance = instanceService.getInstance(def, null);

            auraInit.put("instance", instance);
            auraInit.put("token", AuraBaseServlet.getToken());
            auraInit.put("host", context.getContextPath());
View Full Code Here

        if (!remoteProvider) {
            DefDescriptor<ApplicationDef> superDefDescriptor = def.getExtendsDescriptor();
            if (superDefDescriptor != null) {
              Aura.getDefinitionService().getDefRegistry().assertAccess(descriptor, superDefDescriptor.getDef());

              Application concrete = concreteComponent == null ? this : concreteComponent;
                superComponent = new ApplicationImpl(superDefDescriptor, this, this, concrete);
            }
        }
    }
View Full Code Here

     *
     * @hierarchy Aura.Runtime.Service
     * @userStory a07B0000000EYU4
     */
    public void testGetApplication() throws QuickFixException {
        Application application = Aura.getInstanceService().getInstance("auratest:testApplication1",
                ApplicationDef.class, null);
        assertEquals("Default String", application.getAttributes().getExpression("myString")); // from
                                                                                               // the
                                                                                               // component
        assertEquals(true, application.getAttributes().getExpression("myBoolean")); // from
                                                                                    // the
                                                                                    // parent
                                                                                    // component
        assertEquals("Interface String", application.getAttributes().getExpression("interfaceString")); // from
                                                                                                        // the
        assertEquals("1", application.getGlobalId());
    }
View Full Code Here

     * definition(tree) of the application has a section called "locationChangeEventDef".
     *
     * @throws Exception
     */
    public void testApplicationDefWithLocationChange() throws Exception {
        Application cmp = Aura.getInstanceService().getInstance("test:test_LocChng_SimpleComponent",
                ApplicationDef.class);
        this.serializeAndGoldFile(cmp, "simpleComponent");
        // References to LocationChangeEvent in children refer back to the first
        // definition of LocationChangeEvent using serRefId
        cmp = Aura.getInstanceService().getInstance("test:test_LocChng_CompositeComponent", ApplicationDef.class);
View Full Code Here

TOP

Related Classes of org.auraframework.instance.Application

Copyright © 2018 www.massapicom. 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.