|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PicoContainer - guaranteed to resolve the needs of components as it instantiates them.
Method Summary | |
Object |
getComponent(Object componentKey)
Get a component for a component type. |
Collection |
getComponentKeys()
Get all component types (random order). |
Object |
getComponentMulticaster()
Shorthand for getComponentMulticaster(boolean, boolean) (true, true). |
Object |
getComponentMulticaster(boolean callInInstantiationOrder,
boolean callUnmanagedComponents)
Returns a proxy that implements the union of all the components' interfaces. |
Collection |
getComponents()
Get all components (random order). |
boolean |
hasComponent(Object componentKey)
Does the internals have a partilcilar component type? |
void |
instantiateComponents()
Initialize the internals. |
Method Detail |
public boolean hasComponent(Object componentKey)
componentKey
- The component type to look for.
public Object getComponent(Object componentKey)
componentKey
- The component type to look for.
public Collection getComponents()
public Collection getComponentKeys()
public void instantiateComponents() throws PicoInitializationException
PicoInitializationException
public Object getComponentMulticaster()
getComponentMulticaster(boolean, boolean)
(true, true).
public Object getComponentMulticaster(boolean callInInstantiationOrder, boolean callUnmanagedComponents)
callInInstantiationOrder
- whether to call the methods in the order of instantiation (true) or reverse (false)callUnmanagedComponents
- whether to exclude components registered via instance rather than class
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |