|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.picocontainer.alternatives.ImmutablePicoContainer
ImmutablePicoContainerProxyFactory
| Constructor Summary | |
ImmutablePicoContainer(PicoContainer delegate)
Deprecated. |
|
| Method Summary | |
void |
accept(PicoVisitor visitor)
Deprecated. Accepts a visitor that should visit the child containers, component adapters and component instances. |
void |
dispose()
Deprecated. Dispose this component. |
ComponentAdapter |
getComponentAdapter(Object componentKey)
Deprecated. Find a component adapter associated with the specified key. |
ComponentAdapter |
getComponentAdapterOfType(Class componentType)
Deprecated. Find a component adapter associated with the specified type. |
Collection |
getComponentAdapters()
Deprecated. Retrieve all the component adapters inside this container. |
List |
getComponentAdaptersOfType(Class componentType)
Deprecated. Retrieve all component adapters inside this container that are associated with the specified type. |
Object |
getComponentInstance(Object componentKey)
Deprecated. Retrieve a component instance registered with a specific key. |
Object |
getComponentInstanceOfType(Class componentType)
Deprecated. Find a component instance matching the specified type. |
List |
getComponentInstances()
Deprecated. Retrieve all the registered component instances in the container, (not including those in the parent container). |
List |
getComponentInstancesOfType(Class type)
Deprecated. Returns a List of components of a certain componentType. |
PicoContainer |
getParent()
Deprecated. Retrieve the parent container of this container. |
void |
start()
Deprecated. Start this component. |
void |
stop()
Deprecated. Stop this component. |
void |
verify()
Deprecated. Verify that the dependencies for all the registered components can be satisfied. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImmutablePicoContainer(PicoContainer delegate)
| Method Detail |
public Object getComponentInstance(Object componentKey)
PicoContainer
getComponentInstance in interface PicoContainercomponentKey - the key that the component was registered with.
null if no component has been registered for the specified
key.public Object getComponentInstanceOfType(Class componentType)
PicoContainer
getComponentInstanceOfType in interface PicoContainercomponentType - the type of the component
null if no component has been registered
with a matching typepublic List getComponentInstances()
PicoContainer
getComponentInstances in interface PicoContainerpublic PicoContainer getParent()
PicoContainer
getParent in interface PicoContainerPicoContainer instance, or null if this container does not have a parent.public ComponentAdapter getComponentAdapter(Object componentKey)
PicoContainer
getComponentAdapter in interface PicoContainercomponentKey - the key that the component was registered with.
null if no component has been
registered for the specified key.public ComponentAdapter getComponentAdapterOfType(Class componentType)
PicoContainer
getComponentAdapterOfType in interface PicoContainercomponentType - the type of the component.
null if no component has been
registered for the specified key.public Collection getComponentAdapters()
PicoContainer
getComponentAdapters in interface PicoContainerComponentAdapters inside this container. The collection will not
be modifiable.a variant of this method which returns the component adapters inside this
container that are associated with the specified type.public List getComponentAdaptersOfType(Class componentType)
PicoContainer
getComponentAdaptersOfType in interface PicoContainercomponentType - the type of the components.
ComponentAdapters inside this container that are associated with
the specified type. Changes to this collection will not be reflected in the container itself.
public void verify()
throws PicoVerificationException
PicoContainer
verify in interface PicoContainerPicoVerificationException - if there are unsatisifiable dependencies.
public List getComponentInstancesOfType(Class type)
throws PicoException
PicoContainer
getComponentInstancesOfType in interface PicoContainertype - the searched type.
PicoException - if the instantiation of a component failspublic void accept(PicoVisitor visitor)
PicoContainer
accept in interface PicoContainervisitor - the visitorpublic void start()
Startable
start in interface Startablepublic void stop()
StartableDisposable if you need a single call at the definite end of the lifecycle.
stop in interface Startablepublic void dispose()
Disposable
dispose in interface Disposable
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||