org.apache.avalon.excalibur.component
Class DefaultComponentFactory

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.avalon.excalibur.component.AbstractDualLogEnabled
          extended byorg.apache.avalon.excalibur.component.DefaultComponentFactory
All Implemented Interfaces:
Disposable, LogEnabled, Loggable, ObjectFactory, ThreadSafe

Deprecated. ECM is no longer supported

public class DefaultComponentFactory
extends AbstractDualLogEnabled
implements ObjectFactory, Disposable, ThreadSafe

Factory for Avalon components.

Since:
4.0
Version:
CVS $Revision: 1.6 $ $Date: 2004/02/28 11:47:14 $
Author:
Avalon Development Team

Constructor Summary
DefaultComponentFactory(java.lang.String role, java.lang.Class componentClass, Configuration configuration, ComponentManager componentManager, Context context, RoleManager roles, LogkitLoggerManager loggerManager)
          Deprecated. This constructor has been deprecated in favor of the version below which handles instrumentation.
DefaultComponentFactory(java.lang.String role, java.lang.Class componentClass, Configuration configuration, ComponentManager componentManager, Context context, RoleManager roles, LogkitLoggerManager loggerManager, InstrumentManager instrumentManager, java.lang.String instrumentableName)
          Deprecated. Construct a new component factory for the specified component.
 
Method Summary
 void decommission(java.lang.Object component)
          Deprecated.  
 void dispose()
          Deprecated. The dispose operation is called at the end of a components lifecycle.
 java.lang.Class getCreatedClass()
          Deprecated.  
 java.lang.Object newInstance()
          Deprecated.  
 
Methods inherited from class org.apache.avalon.excalibur.component.AbstractDualLogEnabled
getLogkitLogger, setLogger
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, 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.String role,
                               java.lang.Class componentClass,
                               Configuration configuration,
                               ComponentManager componentManager,
                               Context context,
                               RoleManager roles,
                               LogkitLoggerManager loggerManager)
Deprecated. This constructor has been deprecated in favor of the version below which handles instrumentation.

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.

DefaultComponentFactory

public DefaultComponentFactory(java.lang.String role,
                               java.lang.Class componentClass,
                               Configuration configuration,
                               ComponentManager componentManager,
                               Context context,
                               RoleManager roles,
                               LogkitLoggerManager loggerManager,
                               InstrumentManager instrumentManager,
                               java.lang.String instrumentableName)
Deprecated. 
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.
instrumentManager - the InstrumentManager to register the component with if it is a Instrumentable (May be null).
instrumentableName - The instrument name to assign the component if it is Instrumentable.
Method Detail

newInstance

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

getCreatedClass

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

decommission

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

dispose

public void dispose()
Deprecated. 
Description copied from interface: Disposable
The dispose operation is called at the end of a components lifecycle. This method will be called after Startable.stop() method (if implemented by component). Components use this method to release and destroy any resources that the Component owns.

Specified by:
dispose in interface Disposable


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.