|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.picocontainer.defaults.DecoratingComponentAdapter
Constructor Summary | |
DecoratingComponentAdapter(ComponentAdapter delegate)
|
Method Summary | |
void |
accept(PicoVisitor visitor)
Accepts a visitor for this ComponentAdapter. |
Class |
getComponentImplementation()
Retrieve the class of the component. |
Object |
getComponentInstance(PicoContainer container)
Retrieve the component instance. |
Object |
getComponentKey()
Retrieve the key associated with the component. |
ComponentAdapter |
getDelegate()
|
String |
toString()
|
void |
verify(PicoContainer container)
Verify that all dependencies for this adapter can be satisifed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DecoratingComponentAdapter(ComponentAdapter delegate)
Method Detail |
public Object getComponentKey()
ComponentAdapter
getComponentKey
in interface ComponentAdapter
public Class getComponentImplementation()
ComponentAdapter
getComponentImplementation
in interface ComponentAdapter
public Object getComponentInstance(PicoContainer container) throws PicoInitializationException, PicoIntrospectionException
ComponentAdapter
CachingComponentAdapter
will always return the
same instance.
getComponentInstance
in interface ComponentAdapter
container
- the PicoContainer
, that is used to resolve any possible dependencies of the instance.
PicoInitializationException
- if the component could not be instantiated.
PicoIntrospectionException
- if the component has dependencies which could not be resolved, or
instantiation of the component lead to an ambigous situation within the
container.public void verify(PicoContainer container) throws PicoIntrospectionException
ComponentAdapter
verify
in interface ComponentAdapter
container
- the PicoContainer
, that is used to resolve any possible dependencies of the instance.
PicoIntrospectionException
- if one or more dependencies cannot be resolved.public ComponentAdapter getDelegate()
public void accept(PicoVisitor visitor)
ComponentAdapter
PicoContainer
, that
cascades the visitor also down to all its ComponentAdapter instances.
accept
in interface ComponentAdapter
visitor
- the visitor.public String toString()
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |