org.apache.avalon.excalibur.component
Class DefaultComponentFactory

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.avalon.excalibur.component.DefaultComponentFactory
All Implemented Interfaces:
Component, Loggable, ObjectFactory, ThreadSafe

public class DefaultComponentFactory
extends AbstractLoggable
implements ObjectFactory, ThreadSafe

Factory for Avalon components.

Version:
CVS $Revision: 1.4 $ $Date: 2001/06/06 14:47:49 $
Author:
Berin Loritsch, Paul Russell

Constructor Summary
DefaultComponentFactory(java.lang.Class componentClass, Configuration configuration, ComponentManager componentManager, Context context, RoleManager roles)
          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 org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultComponentFactory

public DefaultComponentFactory(java.lang.Class componentClass,
                               Configuration configuration,
                               ComponentManager componentManager,
                               Context context,
                               RoleManager roles)
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.