|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.picocontainer.defaults.NullPicoContainer
Constructor Summary | |
NullPicoContainer()
|
Method Summary | |
void |
addOrderedComponentAdapter(ComponentAdapter componentAdapter)
Callback method from the implementation to keep track of the instantiation order. |
void |
dispose()
|
ComponentAdapter |
getComponentAdapter(java.lang.Object componentKey)
Finds a ComponentAdapter matching the key, looking in parent if not found in self (unless parent is null). |
ComponentAdapter |
getComponentAdapterOfType(java.lang.Class componentType)
Finds a ComponentAdapter matching the type, looking in parent if not found in self (unless parent is null). |
java.util.Collection |
getComponentAdapters()
Returns all adapters (not including the adapters from the parent). |
java.lang.Object |
getComponentInstance(java.lang.Object componentKey)
Gets a component instance registered with a specific key. |
java.lang.Object |
getComponentInstanceOfType(java.lang.Class componentType)
Finds a component instance matching the type, looking in parent if not found in self (unless parent is null). |
java.util.List |
getComponentInstances()
Gets all the registered component instances in the container, (not including those in the parent container). |
PicoContainer |
getParent()
Get the parent container of this container. |
void |
start()
|
void |
stop()
|
void |
verify()
Verifies that the dependencies for all the registered components can be satisfied None of the components are instantiated during the verification process. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NullPicoContainer()
Method Detail |
public java.lang.Object getComponentInstance(java.lang.Object componentKey)
PicoContainer
getComponentInstance
in interface PicoContainer
componentKey
- key the component was registered with.
public java.lang.Object getComponentInstanceOfType(java.lang.Class componentType)
PicoContainer
getComponentInstanceOfType
in interface PicoContainer
componentType
- type of the component.
public java.util.List getComponentInstances()
PicoContainer
getComponentInstances
in interface PicoContainer
public PicoContainer getParent()
PicoContainer
getParent
in interface PicoContainer
PicoContainer
.public ComponentAdapter getComponentAdapter(java.lang.Object componentKey)
PicoContainer
getComponentAdapter
in interface PicoContainer
componentKey
- key of the component.
public ComponentAdapter getComponentAdapterOfType(java.lang.Class componentType)
PicoContainer
getComponentAdapterOfType
in interface PicoContainer
componentType
- type of the component.
public java.util.Collection getComponentAdapters()
PicoContainer
getComponentAdapters
in interface PicoContainer
ComponentAdapter
.public void verify() throws PicoVerificationException
PicoContainer
verify
in interface PicoContainer
PicoVerificationException
- if there are unsatisifiable dependencies.public void addOrderedComponentAdapter(ComponentAdapter componentAdapter)
PicoContainer
addOrderedComponentAdapter
in interface PicoContainer
public void start()
start
in interface Startable
public void stop()
stop
in interface Startable
public void dispose()
dispose
in interface Disposable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |