Package org.nanocontainer.script.xml

Examples of org.nanocontainer.script.xml.XMLContainerBuilder


        Wilma wilma = (Wilma)childContainer.getComponentInstance("wilma");
        assertSame(wilma, fred.wilma());
    }
   
    private void populateXMLContainer(ContainerRecorder recorder, Reader resource) {
        ContainerPopulator populator = new XMLContainerBuilder(resource, Thread.currentThread().getContextClassLoader());
        populator.populateContainer(recorder.getContainerProxy());
    }      
View Full Code Here


  private static void loadFromStream(InputStream stream, ClassLoader classLoader) {
    InputStreamReader reader = null;
    try {
      reader = new InputStreamReader(stream);
      XMLContainerBuilder builder = new XMLContainerBuilder(reader, classLoader);
      builder.populateContainer(ourInstance);
    } finally {
      try {
        if (reader != null) {
          reader.close();
        }
View Full Code Here

TOP

Related Classes of org.nanocontainer.script.xml.XMLContainerBuilder

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.