|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.picocontainer.script.AbstractContainerBuilder
org.picocontainer.script.ScriptedContainerBuilder
org.picocontainer.script.xml.XStreamContainerBuilder
public class XStreamContainerBuilder
This class builds up a hierarchy of PicoContainers from an XML configuration file.
Constructor Summary | |
---|---|
XStreamContainerBuilder(Reader script)
construct with just reader, use context classloader |
|
XStreamContainerBuilder(Reader script,
ClassLoader classLoader)
construct with given script and specified classloader |
|
XStreamContainerBuilder(Reader script,
ClassLoader classLoader,
com.thoughtworks.xstream.io.HierarchicalStreamDriver driver)
|
|
XStreamContainerBuilder(Reader script,
ClassLoader classLoader,
com.thoughtworks.xstream.io.HierarchicalStreamDriver driver,
LifecycleMode lifecycleMode)
|
|
XStreamContainerBuilder(URL script,
ClassLoader classLoader,
com.thoughtworks.xstream.io.HierarchicalStreamDriver driver)
|
|
XStreamContainerBuilder(URL script,
ClassLoader classLoader,
com.thoughtworks.xstream.io.HierarchicalStreamDriver driver,
LifecycleMode lifecycleMode)
|
Method Summary | |
---|---|
protected org.picocontainer.PicoContainer |
createContainerFromScript(org.picocontainer.PicoContainer parentContainer,
Object assemblyScope)
|
protected void |
insertAdapter(org.picocontainer.MutablePicoContainer container,
Element rootElement)
process adapter node |
protected void |
insertImplementation(org.picocontainer.MutablePicoContainer container,
Element rootElement)
process implementation node |
protected void |
insertInstance(org.picocontainer.MutablePicoContainer container,
Element rootElement)
process instance node. |
protected Object |
parseElementChild(Element rootElement)
parse element child with xstream and provide object |
void |
populateContainer(org.picocontainer.MutablePicoContainer container)
|
Methods inherited from class org.picocontainer.script.ScriptedContainerBuilder |
---|
createContainer, getClassLoader, getScriptInputStream, getScriptReader |
Methods inherited from class org.picocontainer.script.AbstractContainerBuilder |
---|
autoStart, buildContainer, killContainer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XStreamContainerBuilder(Reader script)
script
- public XStreamContainerBuilder(Reader script, ClassLoader classLoader)
classLoader
- script
- public XStreamContainerBuilder(Reader script, ClassLoader classLoader, com.thoughtworks.xstream.io.HierarchicalStreamDriver driver)
public XStreamContainerBuilder(Reader script, ClassLoader classLoader, com.thoughtworks.xstream.io.HierarchicalStreamDriver driver, LifecycleMode lifecycleMode)
public XStreamContainerBuilder(URL script, ClassLoader classLoader, com.thoughtworks.xstream.io.HierarchicalStreamDriver driver)
public XStreamContainerBuilder(URL script, ClassLoader classLoader, com.thoughtworks.xstream.io.HierarchicalStreamDriver driver, LifecycleMode lifecycleMode)
Method Detail |
---|
public void populateContainer(org.picocontainer.MutablePicoContainer container)
protected void insertAdapter(org.picocontainer.MutablePicoContainer container, Element rootElement)
container
- rootElement
- protected void insertImplementation(org.picocontainer.MutablePicoContainer container, Element rootElement) throws ClassNotFoundException
container
- rootElement
-
ClassNotFoundException
protected void insertInstance(org.picocontainer.MutablePicoContainer container, Element rootElement)
container
- rootElement
- protected Object parseElementChild(Element rootElement)
rootElement
-
protected org.picocontainer.PicoContainer createContainerFromScript(org.picocontainer.PicoContainer parentContainer, Object assemblyScope)
createContainerFromScript
in class ScriptedContainerBuilder
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |