|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.excalibur.component.AbstractDualLogEnabled
org.apache.avalon.excalibur.component.DefaultComponentFactory
public class DefaultComponentFactory
Factory for Avalon components.
| Constructor Summary | |
|---|---|
DefaultComponentFactory(String role,
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(String role,
Class componentClass,
Configuration configuration,
ComponentManager componentManager,
Context context,
RoleManager roles,
LogkitLoggerManager loggerManager,
InstrumentManager instrumentManager,
String instrumentableName)
Deprecated. Construct a new component factory for the specified component. |
|
| Method Summary | |
|---|---|
void |
decommission(Object component)
Deprecated. |
void |
dispose()
Deprecated. |
Class |
getCreatedClass()
Deprecated. |
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 |
|---|
public DefaultComponentFactory(String role,
Class componentClass,
Configuration configuration,
ComponentManager componentManager,
Context context,
RoleManager roles,
LogkitLoggerManager loggerManager)
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.
public DefaultComponentFactory(String role,
Class componentClass,
Configuration configuration,
ComponentManager componentManager,
Context context,
RoleManager roles,
LogkitLoggerManager loggerManager,
InstrumentManager instrumentManager,
String instrumentableName)
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 |
|---|
public Object newInstance()
throws Exception
newInstance in interface ObjectFactoryExceptionpublic Class getCreatedClass()
getCreatedClass in interface ObjectFactory
public void decommission(Object component)
throws Exception
decommission in interface ObjectFactoryExceptionpublic void dispose()
dispose in interface Disposable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||