|
![]() |
||||||||||
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.
PicoIntrospectionException
- if the component has dependencies which could not be resolved, or
instantiation of the component lead to an ambigous situation within the
container.
PicoInitializationException
- if the component could not be instantiated.public void verify(PicoContainer container) throws PicoVerificationException
ComponentAdapter
verify
in interface ComponentAdapter
container
- the PicoContainer
, that is used to resolve any possible dependencies of the instance.
PicoVerificationException
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 |