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:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.logger.Loggable, ObjectFactory, org.apache.avalon.framework.thread.ThreadSafe
- public class DefaultComponentFactory
- extends org.apache.avalon.framework.logger.AbstractLoggable
- implements ObjectFactory, org.apache.avalon.framework.thread.ThreadSafe
Factory for Avalon components.
- Since:
- 4.0
- Version:
- CVS $Revision: 1.10 $ $Date: 2001/12/11 09:53:27 $
- Author:
- Berin Loritsch, Paul Russell
Constructor Summary |
DefaultComponentFactory(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,
LogKitManager logkit)
Construct a new component factory for the specified component. |
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 |
DefaultComponentFactory
public DefaultComponentFactory(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,
LogKitManager 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 Composable
s.context
- the Context
to pass to Contexutalizable
s.roles
- the RoleManager
to pass to DefaultComponentSelector
s.
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
getLogEnabledLogger
protected org.apache.avalon.framework.logger.Logger getLogEnabledLogger()
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.