Package org.auraframework.impl.source

Examples of org.auraframework.impl.source.SourceFactory


            // Ooh, now _this_ is ugly. Because privileged namespaces are tracked by the
            // SourceFactory constructor, we'd best build a source factory for every loader.
            // This ensures that we do in the case of static registries. Note that it also
            // allows us to see source on static registries.
            //
            SourceFactory sf = new SourceFactory(markupLoaders);
            for (DefRegistry<?> reg : staticRegs) {
                if (reg instanceof StaticDefRegistryImpl) {
                    ((StaticDefRegistryImpl<?>)reg).setSourceFactory(sf);
                }
            }
View Full Code Here


                markupLoaders.addAll(extraLoaders);
                javaLoaders.addAll(extraLoaders);
            }

            if (markupLoaders.size() > 0) {
                SourceFactory markupSourceFactory = new SourceFactory(markupLoaders);

                regBuild.add(createDefRegistry(new RootDefFactory(markupSourceFactory), rootDefTypes, rootPrefixes));
                regBuild.add(AuraRegistryProviderImpl.<ControllerDef> createJavascriptRegistry(markupSourceFactory,
                        DefType.CONTROLLER));
                regBuild.add(AuraRegistryProviderImpl.<TestSuiteDef> createJavascriptRegistry(markupSourceFactory,
View Full Code Here

        addSourceAutoCleanup(ApplicationDef.class, baseContents, String.format("%s:houseparty", namespace));
        addSourceAutoCleanup(ApplicationDef.class, baseContents, String.format("%s:pantsparty", namespace));

        StringSourceLoader loader = StringSourceLoader.getInstance();
        List<SourceLoader> loaders = Lists.newArrayList((SourceLoader) loader);
        RootDefFactory factory = new RootDefFactory(new SourceFactory(loaders));

        assertTrue("RootDefFactory should have a find() method", factory.hasFind());
        assertTrue("find() not finding all sources",
                factory.find(new DescriptorFilter(String.format("markup://%s:*", namespace))).size() == 3);
        assertEquals("find() fails with wildcard as prefix", 1,
View Full Code Here

TOP

Related Classes of org.auraframework.impl.source.SourceFactory

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.