|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.picocontainer.alternatives.ImmutablePicoContainer
ImmutablePicoContainerProxyFactory
public class ImmutablePicoContainer
Field Summary | |
---|---|
private PicoContainer |
delegate
Deprecated. |
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(java.lang.Object componentKey)
Deprecated. Find a component adapter associated with the specified key. |
ComponentAdapter |
getComponentAdapterOfType(java.lang.Class componentType)
Deprecated. Find a component adapter associated with the specified type. |
java.util.Collection |
getComponentAdapters()
Deprecated. Retrieve all the component adapters inside this container. |
java.util.List |
getComponentAdaptersOfType(java.lang.Class componentType)
Deprecated. Retrieve all component adapters inside this container that are associated with the specified type. |
java.lang.Object |
getComponentInstance(java.lang.Object componentKey)
Deprecated. Retrieve a component instance registered with a specific key. |
java.lang.Object |
getComponentInstanceOfType(java.lang.Class componentType)
Deprecated. Find a component instance matching the specified type. |
java.util.List |
getComponentInstances()
Deprecated. Retrieve all the registered component instances in the container, (not including those in the parent container). |
java.util.List |
getComponentInstancesOfType(java.lang.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. since 1.1 - Use "new VerifyingVisitor().traverse(this)" |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private PicoContainer delegate
Constructor Detail |
---|
public ImmutablePicoContainer(PicoContainer delegate)
Method Detail |
---|
public java.lang.Object getComponentInstance(java.lang.Object componentKey)
PicoContainer
getComponentInstance
in interface PicoContainer
componentKey
- the key that the component was registered with.
null
if no component has been registered for the specified
key.public java.lang.Object getComponentInstanceOfType(java.lang.Class componentType)
PicoContainer
getComponentInstanceOfType
in interface PicoContainer
componentType
- the type of the component
null
if no component has been registered
with a matching typepublic java.util.List getComponentInstances()
PicoContainer
getComponentInstances
in interface PicoContainer
public PicoContainer getParent()
PicoContainer
getParent
in interface PicoContainer
PicoContainer
instance, or null
if this container does not have a parent.public ComponentAdapter getComponentAdapter(java.lang.Object componentKey)
PicoContainer
getComponentAdapter
in interface PicoContainer
componentKey
- the key that the component was registered with.
null
if no component has been
registered for the specified key.public ComponentAdapter getComponentAdapterOfType(java.lang.Class componentType)
PicoContainer
getComponentAdapterOfType
in interface PicoContainer
componentType
- the type of the component.
null
if no component has been
registered for the specified key.public java.util.Collection getComponentAdapters()
PicoContainer
getComponentAdapters
in interface PicoContainer
ComponentAdapter
s 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 java.util.List getComponentAdaptersOfType(java.lang.Class componentType)
PicoContainer
getComponentAdaptersOfType
in interface PicoContainer
componentType
- the type of the components.
ComponentAdapter
s 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 PicoContainer
PicoVerificationException
- if there are unsatisifiable dependencies.public java.util.List getComponentInstancesOfType(java.lang.Class type) throws PicoException
PicoContainer
getComponentInstancesOfType
in interface PicoContainer
type
- the searched type.
PicoException
- if the instantiation of a component failspublic void accept(PicoVisitor visitor)
PicoContainer
accept
in interface PicoContainer
visitor
- the visitorpublic void start()
Startable
start
in interface Startable
public void stop()
Startable
Disposable
if you need a single call at the definite end of the lifecycle.
stop
in interface Startable
public void dispose()
Disposable
dispose
in interface Disposable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |