| org.picocontainer.ComponentFactory
All known Subclasses: org.picocontainer.gems.jndi.JNDIProviding, org.picocontainer.injectors.MethodInjection, org.picocontainer.behaviors.AbstractBehaviorFactory,
ComponentFactory | public interface ComponentFactory (Code) | |
A component factory is responsible for creating
ComponentAdapter component adapters. The main use of the component factory is
inside
DefaultPicoContainer.DefaultPicoContainer(ComponentFactory) , where it can
be used to customize the default component adapter that is used when none is specified
explicitly.
author: Paul Hammant author: Mauro Talevi author: Jon Tirsén |
Method Summary | |
ComponentAdapter<T> | createComponentAdapter(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, Object componentKey, Class<T> componentImplementation, Parameter... parameters) Create a new component adapter based on the specified arguments.
Parameters: componentMonitor - the component monitor Parameters: lifecycleStrategy - te lifecycle strategy Parameters: componentProperties - the component properties Parameters: componentKey - the key to be associated with this adapter. |
createComponentAdapter | ComponentAdapter<T> createComponentAdapter(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, Object componentKey, Class<T> componentImplementation, Parameter... parameters) throws PicoCompositionException(Code) | | Create a new component adapter based on the specified arguments.
Parameters: componentMonitor - the component monitor Parameters: lifecycleStrategy - te lifecycle strategy Parameters: componentProperties - the component properties Parameters: componentKey - the key to be associated with this adapter. Thisvalue should be returned from a call toComponentAdapter.getComponentKey on the createdadapter. Parameters: componentImplementation - the implementation class to be associatedwith this adapter. This value should be returned from a callto ComponentAdapter.getComponentImplementation onthe created adapter. Should not be null. Parameters: parameters - additional parameters to use by the component adapterin constructing component instances. These may be used, forexample, to make decisions about the arguments passed into thecomponent constructor. These should be considered hints; theymay be ignored by some implementations. May be null, and maybe of zero length. a new component adapter based on the specified arguments. Shouldnot return null. throws: PicoCompositionException - if the creation of the component adapterresults in a PicoCompositionException. The component adapter |
|
|