Package org.apache.aries.blueprint.parser

Examples of org.apache.aries.blueprint.parser.Parser


      parser.parse(blueprintsToParse);
      return getCDR(parser);
    }
     
    protected ComponentDefinitionRegistry parseCDR(InputStream blueprintToParse) throws Exception {
      Parser parser = new Parser();
      parser.parse(blueprintToParse);
      return getCDR(parser);
    }
View Full Code Here


     
      BundleContextMock.clear();
    }
   
    protected ComponentDefinitionRegistry parseCDR(String name) throws Exception {
        Parser p = new Parser();
       
        URL bpxml = this.getClass().getResource(name);
        p.parse(Arrays.asList(bpxml));
       
        Set<URI> nsuris = p.getNamespaces();
        NamespaceHandlerSet nshandlers = nhri.getNamespaceHandlers(nsuris, b);
        p.validate(nshandlers.getSchema());
       
        ComponentDefinitionRegistry cdr = new ComponentDefinitionRegistryImpl();
        cdr.registerComponentDefinition(new PassThroughMetadataImpl("blueprintBundle", b));
        p.populate(nshandlers, cdr);
       
        return cdr;
    }
View Full Code Here

                LOGGER.debug("Running blueprint container for bundle {} in state {}", bundleContext.getBundle().getSymbolicName(), state);
                switch (state) {
                    case Unknown:
                        readDirectives();
                        eventDispatcher.blueprintEvent(new BlueprintEvent(BlueprintEvent.CREATING, getBundleContext().getBundle(), getExtenderBundle()));
                        parser = new Parser();
                        parser.parse(getResources());
                        namespaces = parser.getNamespaces();
                        handlerSet = handlers.getNamespaceHandlers(namespaces, getBundleContext().getBundle());
                        handlerSet.addListener(this);
                        state = State.WaitForNamespaceHandlers;
View Full Code Here

TOP

Related Classes of org.apache.aries.blueprint.parser.Parser

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.