|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NanoContainer
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(URL url)
Adds a new URL that will be used in classloading |
org.picocontainer.MutablePicoContainer |
addDecoratingPicoContainer(Class picoContainerClass)
|
ClassLoader |
getComponentClassLoader()
|
Object |
getComponentInstanceOfType(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(Object key,
String componentImplementationClassName)
|
org.picocontainer.ComponentAdapter |
registerComponentImplementation(Object key,
String componentImplementationClassName,
org.picocontainer.Parameter[] parameters)
|
org.picocontainer.ComponentAdapter |
registerComponentImplementation(Object key,
String componentImplementationClassName,
String[] parameterTypesAsString,
String[] parameterValuesAsString)
|
org.picocontainer.ComponentAdapter |
registerComponentImplementation(String componentImplementationClassName)
|
org.picocontainer.ComponentAdapter |
registerComponentImplementation(String componentImplementationClassName,
String[] parameterTypesAsString,
String[] parameterValuesAsString)
|
Method Detail |
---|
org.picocontainer.ComponentAdapter registerComponentImplementation(String componentImplementationClassName) throws org.picocontainer.PicoRegistrationException, ClassNotFoundException, org.picocontainer.PicoIntrospectionException
org.picocontainer.PicoRegistrationException
ClassNotFoundException
org.picocontainer.PicoIntrospectionException
org.picocontainer.ComponentAdapter registerComponentImplementation(Object key, String componentImplementationClassName) throws ClassNotFoundException
ClassNotFoundException
org.picocontainer.ComponentAdapter registerComponentImplementation(Object key, String componentImplementationClassName, org.picocontainer.Parameter[] parameters) throws ClassNotFoundException
ClassNotFoundException
org.picocontainer.ComponentAdapter registerComponentImplementation(Object key, String componentImplementationClassName, String[] parameterTypesAsString, String[] parameterValuesAsString) throws org.picocontainer.PicoRegistrationException, ClassNotFoundException, org.picocontainer.PicoIntrospectionException
org.picocontainer.PicoRegistrationException
ClassNotFoundException
org.picocontainer.PicoIntrospectionException
org.picocontainer.ComponentAdapter registerComponentImplementation(String componentImplementationClassName, String[] parameterTypesAsString, String[] parameterValuesAsString) throws org.picocontainer.PicoRegistrationException, ClassNotFoundException, org.picocontainer.PicoIntrospectionException
org.picocontainer.PicoRegistrationException
ClassNotFoundException
org.picocontainer.PicoIntrospectionException
ClassPathElement addClassLoaderURL(URL url)
url
- org.picocontainer.MutablePicoContainer getPico()
ClassLoader getComponentClassLoader()
Object getComponentInstanceOfType(String componentType)
componentType
- the type of the component.
org.picocontainer.MutablePicoContainer addDecoratingPicoContainer(Class picoContainerClass)
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |