org.picocontainer.internals
Interface ComponentFactory

All Known Implementing Classes:
DefaultComponentFactory, ImplementationHidingComponentFactory

public interface ComponentFactory


Method Summary
 Object createComponent(ComponentSpecification componentSpec, Object[] instanceDependencies)
          Create a component.
 Class[] getDependencies(Class componentImplementation)
          Return the types the componentImplementation component depends on.
 

Method Detail

createComponent

public Object createComponent(ComponentSpecification componentSpec,
                              Object[] instanceDependencies)
                       throws PicoInitializationException,
                              PicoIntrospectionException
Create a component. Used by the internals of applicable PicoContainers to instantiate a component.

Parameters:
componentSpec -
instanceDependencies - The component instances the created component will depend on.
Throws:
PicoInitializationException
PicoIntrospectionException

getDependencies

public Class[] getDependencies(Class componentImplementation)
                        throws PicoIntrospectionException
Return the types the componentImplementation component depends on.

Parameters:
componentImplementation - concrete component class.
Throws:
PicoIntrospectionException


Copyright © 2003 Codehaus. All Rights Reserved.