|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addParameterToComponent(Object componentKey,
Class parameter,
Object arg)
Add a parameter to a component. |
void |
registerComponent(Object componentKey,
Class componentImplementation)
Alternate way of registering components with additional component type. |
void |
registerComponent(Object componentKey,
Class componentImplementation,
Parameter[] parameters)
Register component with key, implementation and bindings for its parameters. |
void |
registerComponent(Object componentKey,
Object componentInstance)
Registers a component that is instantiated and configured outside the internals. |
void |
registerComponentByClass(Class componentImplementation)
Registers a component. |
void |
registerComponentByInstance(Object componentInstance)
Registers an instantiated component. |
Methods inherited from interface org.picocontainer.PicoContainer |
getComponent, getComponentKeys, getComponentMulticaster, getComponentMulticaster, getComponents, hasComponent, instantiateComponents |
Method Detail |
public void registerComponentByClass(Class componentImplementation) throws PicoRegistrationException, PicoIntrospectionException
registerComponent(Object, Class)
with the componentImplementation as key.
componentImplementation
- The class of the component to instantiate
PicoRegistrationException
- If a registration problem
PicoIntrospectionException
public void registerComponent(Object componentKey, Class componentImplementation) throws PicoRegistrationException, PicoIntrospectionException
componentKey
- Component typecomponentImplementation
- The class of the component to instantiate
PicoRegistrationException
- If a registration problem
PicoIntrospectionException
public void registerComponent(Object componentKey, Object componentInstance) throws PicoRegistrationException, PicoIntrospectionException
componentKey
- Component typecomponentInstance
- preinstantiated component
PicoRegistrationException
- If a registration problem
PicoIntrospectionException
public void registerComponentByInstance(Object componentInstance) throws PicoRegistrationException, PicoIntrospectionException
componentInstance
- The pre instantiated component to register
PicoRegistrationException
PicoIntrospectionException
public void registerComponent(Object componentKey, Class componentImplementation, Parameter[] parameters) throws PicoRegistrationException
componentKey
- Component typecomponentImplementation
- The class of the component to instantiate
PicoRegistrationException
- If a registration problempublic void addParameterToComponent(Object componentKey, Class parameter, Object arg) throws PicoIntrospectionException
componentKey
- The component typeparameter
- The parameter it pertains toarg
- The argukemt to pass in.
PicoIntrospectionException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |