picocontainer.defaults
Class DefaultComponentFactory
java.lang.Object
picocontainer.defaults.DefaultComponentFactory
- All Implemented Interfaces:
- ComponentFactory
- Direct Known Subclasses:
- ImplementationHidingComponentFactory
- public class DefaultComponentFactory
- extends Object
- implements ComponentFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultComponentFactory
public DefaultComponentFactory()
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 instantiateconstructor
- 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.