picocontainer
Interface ComponentFactory

All Known Implementing Classes:
DefaultComponentFactory

public interface ComponentFactory


Method Summary
 Object createComponent(Class compType, Constructor constructor, Object[] args)
          Create a component.
 

Method Detail

createComponent

public Object createComponent(Class compType,
                              Constructor constructor,
                              Object[] args)
                       throws PicoInvocationTargetInitailizationException
Create a component. Used by the internals of applicable PicoContainers to instantiate a component.

Parameters:
compType - The component type to instantiate
constructor - The constructor to use to create the component.
args - The arguments to pass in to the constructor
Returns:
The component
Throws:
PicoInvocationTargetInitailizationException - If a problem creating the component.


Copyright © Codehaus. All Rights Reserved.