|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A NanoContainer is a container that contains a PicoContainer. -Like
Russian dolls.
A NanoContainer adapts a MutablePicoContainer
through a similar API that
is based only on Strings. (It uses reflection to look up classes before registering them
with the adapted PicoContainer). This adapter API is used primarily by the various
ScriptedContainerBuilder
implementations in the
org.nanocontainer.script.[scripting engine] packages.
Method Summary | |
ClassPathElement |
addClassLoaderURL(java.net.URL url)
Adds a new URL that will be used in classloading |
org.picocontainer.MutablePicoContainer |
addDecoratingPicoContainer(java.lang.Class picoContainerClass)
|
java.lang.ClassLoader |
getComponentClassLoader()
|
java.lang.Object |
getComponentInstanceOfType(java.lang.String componentType)
Find a component instance matching the specified type. |
org.picocontainer.MutablePicoContainer |
getPico()
Returns the wrapped PicoContainer instance (russian doll concept). |
org.picocontainer.ComponentAdapter |
registerComponentImplementation(java.lang.Object key,
java.lang.String componentImplementationClassName)
|
org.picocontainer.ComponentAdapter |
registerComponentImplementation(java.lang.Object key,
java.lang.String componentImplementationClassName,
org.picocontainer.Parameter[] parameters)
|
org.picocontainer.ComponentAdapter |
registerComponentImplementation(java.lang.Object key,
java.lang.String componentImplementationClassName,
java.lang.String[] parameterTypesAsString,
java.lang.String[] parameterValuesAsString)
|
org.picocontainer.ComponentAdapter |
registerComponentImplementation(java.lang.String componentImplementationClassName)
|
org.picocontainer.ComponentAdapter |
registerComponentImplementation(java.lang.String componentImplementationClassName,
java.lang.String[] parameterTypesAsString,
java.lang.String[] parameterValuesAsString)
|
Method Detail |
public org.picocontainer.ComponentAdapter registerComponentImplementation(java.lang.String componentImplementationClassName) throws org.picocontainer.PicoRegistrationException, java.lang.ClassNotFoundException, org.picocontainer.PicoIntrospectionException
org.picocontainer.PicoRegistrationException
java.lang.ClassNotFoundException
org.picocontainer.PicoIntrospectionException
public org.picocontainer.ComponentAdapter registerComponentImplementation(java.lang.Object key, java.lang.String componentImplementationClassName) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public org.picocontainer.ComponentAdapter registerComponentImplementation(java.lang.Object key, java.lang.String componentImplementationClassName, org.picocontainer.Parameter[] parameters) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public org.picocontainer.ComponentAdapter registerComponentImplementation(java.lang.Object key, java.lang.String componentImplementationClassName, java.lang.String[] parameterTypesAsString, java.lang.String[] parameterValuesAsString) throws org.picocontainer.PicoRegistrationException, java.lang.ClassNotFoundException, org.picocontainer.PicoIntrospectionException
org.picocontainer.PicoRegistrationException
java.lang.ClassNotFoundException
org.picocontainer.PicoIntrospectionException
public org.picocontainer.ComponentAdapter registerComponentImplementation(java.lang.String componentImplementationClassName, java.lang.String[] parameterTypesAsString, java.lang.String[] parameterValuesAsString) throws org.picocontainer.PicoRegistrationException, java.lang.ClassNotFoundException, org.picocontainer.PicoIntrospectionException
org.picocontainer.PicoRegistrationException
java.lang.ClassNotFoundException
org.picocontainer.PicoIntrospectionException
public ClassPathElement addClassLoaderURL(java.net.URL url)
url
- public org.picocontainer.MutablePicoContainer getPico()
public java.lang.ClassLoader getComponentClassLoader()
public java.lang.Object getComponentInstanceOfType(java.lang.String componentType)
componentType
- the type of the component.
public org.picocontainer.MutablePicoContainer addDecoratingPicoContainer(java.lang.Class picoContainerClass)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |