picocontainer.defaults
Class DefaultComponentFactory

java.lang.Object
  extended bypicocontainer.defaults.DefaultComponentFactory
All Implemented Interfaces:
ComponentFactory
Direct Known Subclasses:
ImplementationHidingComponentFactory

public class DefaultComponentFactory
extends Object
implements ComponentFactory


Constructor Summary
DefaultComponentFactory()
           
 
Method Summary
 Object createComponent(Class compType, Constructor constructor, Object[] args)
          Create a component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultComponentFactory

public DefaultComponentFactory()
Method Detail

createComponent

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

Specified by:
createComponent in interface ComponentFactory
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.