|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addParameterToComponent(Class componentType,
Class parameter,
Object arg)
Add a parameter to a component. |
void |
registerComponent(Class componentImplementation)
Registers a component. |
void |
registerComponent(Class componentType,
Class componentImplementation)
Alternate way of registering components with additional component type. |
void |
registerComponent(Class componentImplementation,
Class componentType,
Parameter[] parameters)
|
void |
registerComponent(Class componentType,
Object component)
Registers a component that is instantiated and configured outside the container. |
void |
registerComponent(Object component)
Registers an instantiated component. |
Methods inherited from interface picocontainer.PicoContainer |
getComponent, getComponents, getComponentTypes, hasComponent, instantiateComponents |
Method Detail |
public void registerComponent(Class componentImplementation) throws PicoRegistrationException, PicoIntrospectionException
registerComponent(java.lang.Class, java.lang.Class)
with the same argument.
componentImplementation
- The class of the component to instantiate
PicoRegistrationException
- If a registration problem
PicoIntrospectionException
public void registerComponent(Class componentType, Class componentImplementation) throws PicoRegistrationException, PicoIntrospectionException
componentType
- Component typecomponentImplementation
- The class of the component to instantiate
PicoRegistrationException
- If a registration problem
PicoIntrospectionException
public void registerComponent(Class componentType, Object component) throws PicoRegistrationException
componentType
- Component typecomponent
- preinstantiated component
PicoRegistrationException
- If a registration problempublic void registerComponent(Object component) throws PicoRegistrationException
component
- The pre instantiated component to register
PicoRegistrationException
public void registerComponent(Class componentImplementation, Class componentType, Parameter[] parameters) throws PicoRegistrationException
PicoRegistrationException
public void addParameterToComponent(Class componentType, Class parameter, Object arg) throws PicoIntrospectionException
componentType
- 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 |