|
![]() |
||||||||||
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 | |
Class |
getComponentImplementation()
Retrieve the class of the component. |
Object |
getComponentInstance()
Retrieve the component instance. |
Object |
getComponentKey()
Retrieve the key associated with the component. |
PicoContainer |
getContainer()
Retrieve the container in which the component is registered. |
ComponentAdapter |
getDelegate()
|
void |
setContainer(PicoContainer picoContainer)
Set the container in which this adapter is registered. |
void |
verify()
Verify that all dependencies for this adapter can be satisifed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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() throws PicoInitializationException, PicoIntrospectionException, AssignabilityRegistrationException, NotConcreteRegistrationException
ComponentAdapter
CachingComponentAdapter
will always return the
same instance.
getComponentInstance
in interface ComponentAdapter
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.
AssignabilityRegistrationException
NotConcreteRegistrationException
public void verify()
ComponentAdapter
verify
in interface ComponentAdapter
public PicoContainer getContainer()
ComponentAdapter
getContainer
in interface ComponentAdapter
public ComponentAdapter getDelegate()
public void setContainer(PicoContainer picoContainer)
ComponentAdapter
setContainer
in interface ComponentAdapter
picoContainer
- the container in which this adapter is registered.
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |