|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.nanocontainer.nanowar.chain.ServletChainBuilder
ServletChainBuilder builds ContainerChains from servlet path and caches container recorders for later use.
| Constructor Summary | |
ServletChainBuilder(javax.servlet.ServletContext context,
String containerBuilderClassName,
String containerScriptName,
String emptyContainerScript)
Constructor for the ServletChainBuilder object |
|
| Method Summary | |
ContainerChain |
buildChain(Object[] pathElements,
org.picocontainer.PicoContainer parent)
Build ContainerChain for path elements |
void |
populateContainerForPath(org.picocontainer.MutablePicoContainer container,
String path)
populate container for given path. |
void |
populateRecursively(ContainerChain chain,
org.picocontainer.PicoContainer parent,
Iterator pathElements)
Create and populate containers in recursive way |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ServletChainBuilder(javax.servlet.ServletContext context,
String containerBuilderClassName,
String containerScriptName,
String emptyContainerScript)
context - the ServletContextcontainerBuilderClassName - the class name of the ContainerBuildercontainerScriptName - the name of the container script resourceemptyContainerScript - the script for empty container if the container config is not found| Method Detail |
public void populateContainerForPath(org.picocontainer.MutablePicoContainer container,
String path)
throws ClassNotFoundException
container - the MutablePicoContainer used by the recorderpath - the String representing the servlet path used as key for the recorder cache
ClassNotFoundException - if the container builder class is not found
public ContainerChain buildChain(Object[] pathElements,
org.picocontainer.PicoContainer parent)
throws ClassNotFoundException
pathElements - an array of Objects used as keys for
selecting Application objectsparent - the parent PicoContainer or null
ClassNotFoundException
public void populateRecursively(ContainerChain chain,
org.picocontainer.PicoContainer parent,
Iterator pathElements)
throws ClassNotFoundException
chain - the ContainerChain to which the containers are addedparent - the parent PicoContainerpathElements - the Iterator on the path elements
ClassNotFoundException
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||