picocontainer.extras
Class ImplementationHidingComponentFactory

java.lang.Object
  extended bypicocontainer.extras.ImplementationHidingComponentFactory
All Implemented Interfaces:
ComponentFactory

public class ImplementationHidingComponentFactory
extends Object
implements ComponentFactory


Constructor Summary
ImplementationHidingComponentFactory(ComponentFactory componentFactory)
           
 
Method Summary
 Object createComponent(Class componentType, Class componentImplementation, Class[] dependencies, Object[] instanceDependencies)
          Create a component.
 Class[] getDependencies(Class componentImplementation)
          Return the types the componentImplementation component depends on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImplementationHidingComponentFactory

public ImplementationHidingComponentFactory(ComponentFactory componentFactory)
Method Detail

createComponent

public Object createComponent(Class componentType,
                              Class componentImplementation,
                              Class[] dependencies,
                              Object[] instanceDependencies)
                       throws PicoInstantiationException,
                              PicoIntrospectionException
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:
componentType - the type the component will be registered as.
componentImplementation - concrete component class.
instanceDependencies - The component instances the created component will depend on.
Returns:
The component
Throws:
PicoInstantiationException
PicoIntrospectionException

getDependencies

public Class[] getDependencies(Class componentImplementation)
                        throws PicoIntrospectionException
Description copied from interface: ComponentFactory
Return the types the componentImplementation component depends on.

Specified by:
getDependencies in interface ComponentFactory
Parameters:
componentImplementation - concrete component class.
Returns:
an array of dependent types.
Throws:
PicoIntrospectionException


Copyright © 2003 Codehaus. All Rights Reserved.