org.apache.avalon.excalibur.system.handler
Class ComponentFactory

java.lang.Object
  |
  +--org.apache.avalon.excalibur.system.handler.ComponentFactory
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, ObjectFactory, org.apache.avalon.framework.thread.ThreadSafe

public class ComponentFactory
extends java.lang.Object
implements ObjectFactory, org.apache.avalon.framework.thread.ThreadSafe

Factory for Avalon components.

Since:
4.0
Version:
CVS $Revision: 1.1 $ $Date: 2002/01/28 20:54:01 $
Author:
Berin Loritsch, Paul Russell

Constructor Summary
ComponentFactory(java.lang.Class componentClass, org.apache.avalon.framework.configuration.Configuration configuration, org.apache.avalon.framework.component.ComponentManager componentManager, org.apache.avalon.framework.context.Context context, RoleManager roles, LoggerManager logkit)
          Construct a new component factory for the specified component.
 
Method Summary
 void decommission(java.lang.Object component)
           
 java.lang.Class getCreatedClass()
           
 java.lang.Object newInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentFactory

public ComponentFactory(java.lang.Class componentClass,
                        org.apache.avalon.framework.configuration.Configuration configuration,
                        org.apache.avalon.framework.component.ComponentManager componentManager,
                        org.apache.avalon.framework.context.Context context,
                        RoleManager roles,
                        LoggerManager logkit)
Construct a new component factory for the specified component.
Parameters:
componentClass - the class to instantiate (must have a default constructor).
configuration - the Configuration object to pass to new instances.
componentManager - the component manager to pass to Composables.
context - the Context to pass to Contexutalizables.
roles - the RoleManager to pass to DefaultComponentSelectors.
Method Detail

newInstance

public java.lang.Object newInstance()
                             throws java.lang.Exception
Specified by:
newInstance in interface ObjectFactory

getCreatedClass

public final java.lang.Class getCreatedClass()
Specified by:
getCreatedClass in interface ObjectFactory

decommission

public final void decommission(java.lang.Object component)
                        throws java.lang.Exception
Specified by:
decommission in interface ObjectFactory


Copyright 2001 Apache Jakarta Project. All Rights Reserved.