fr.paris5.shaman.insight.component
Class ComponentHandler

fr.paris5.shaman.insight.component.ComponentHandler
All Implemented Interfaces:
InsightConfigurationConstants, SystemConfigurationConstants
Direct Known Subclasses:
PreInstantiatedComponentHandler, RMIClientObjectHandler, StandaloneComponentHandler

public abstract class ComponentHandler
implements SystemConfigurationConstants, InsightConfigurationConstants

Instantiates, then keeps a reference to a Component instance inside a ServiceManager. This class should never be seen out of ServiceManager and derivatives of this class.

Version:
$Id: ComponentHandler.java,v 1.1 2002/06/18 12:23:12 caillette Exp $
Author:
Laurent Caillette

Field Summary
protected  java.lang.ClassLoader classLoader
           
protected  org.apache.avalon.framework.component.ComponentManager componentManager
           
protected  org.apache.avalon.framework.configuration.Configuration configuration
           
protected  InsightContext context
           
 
Fields inherited from interface fr.paris5.shaman.system.SystemConfigurationConstants
BASEDIRURL_ATTRIBUTE, DEFAULTHOSTNAME, EMPTYSYSTEM_RESOURCE, HOSTNAME_ATTRIBUTE, PORT_ATTRIBUTE, RUNSTYLE_ATTRIBUTE, SYSTEMCONFIGURATION_DEFAULT_RESOURCE
 
Fields inherited from interface fr.paris5.shaman.insight.component.InsightConfigurationConstants
CLASS_ATTRIBUTE, COMMANDLOGS_ELEMENT, DEFAULT_PREVALENCEBASE_DIR, DIR_ELEMENT, EXPOSEDAS_ATTRIBUTE, LOGKITCONFIGURATION_DEFAULT_RESOURCE, PERSISTING_ATTRIBUTE, ROLE_ATTRIBUTE, SNAPSHOTDIR_ELEMENT, SYSTEMCONFIGURATIONURL_ATTRIBUTE
 
Constructor Summary
ComponentHandler(java.lang.ClassLoader classLoader)
           
 
Method Summary
 void compose(org.apache.avalon.framework.component.ComponentManager componentManager)
           
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
 void contextualize(org.apache.avalon.framework.context.Context context)
           
 void dispose()
           
protected abstract  org.apache.avalon.framework.component.Component doInstantiate()
           
 org.apache.avalon.framework.component.Component getComponent()
           
protected  org.apache.avalon.framework.logger.Logger getLogEnabledLogger()
           
 void initialize()
           
protected  org.apache.avalon.framework.component.Component instantiateComponent()
           
 void setLogKitManager(org.apache.avalon.excalibur.logger.LogKitManager logkitManager)
           
 

Field Detail

classLoader

protected final java.lang.ClassLoader classLoader

context

protected InsightContext context

componentManager

protected org.apache.avalon.framework.component.ComponentManager componentManager

configuration

protected org.apache.avalon.framework.configuration.Configuration configuration
Constructor Detail

ComponentHandler

public ComponentHandler(java.lang.ClassLoader classLoader)
Method Detail

getComponent

public final org.apache.avalon.framework.component.Component getComponent()

contextualize

public void contextualize(org.apache.avalon.framework.context.Context context)
                   throws org.apache.avalon.framework.context.ContextException

compose

public void compose(org.apache.avalon.framework.component.ComponentManager componentManager)
             throws org.apache.avalon.framework.component.ComponentException

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException

instantiateComponent

protected final org.apache.avalon.framework.component.Component instantiateComponent()
                                                                              throws java.lang.Exception

doInstantiate

protected abstract org.apache.avalon.framework.component.Component doInstantiate()
                                                                          throws java.lang.Exception

initialize

public final void initialize()
                      throws java.lang.Exception

dispose

public final void dispose()

setLogKitManager

public void setLogKitManager(org.apache.avalon.excalibur.logger.LogKitManager logkitManager)

getLogEnabledLogger

protected org.apache.avalon.framework.logger.Logger getLogEnabledLogger()


Copyright © 2002 Laurent Caillette and l'Université René Descartes, Paris 5. All rights reserved.