Klasse AvalonServiceComponentImpl
java.lang.Object
org.apache.fulcrum.yaafi.framework.component.ServiceComponentImpl
org.apache.fulcrum.yaafi.framework.component.AvalonServiceComponentImpl
- Alle implementierten Schnittstellen:
ServiceComponent,ServiceComponentLifecycle
This class implements a service component singleton with
an arbitrary lifecycle.
- Autor:
- Siegfried Goeschl
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungAvalonServiceComponentImpl(RoleEntry roleEntry, org.apache.avalon.framework.logger.Logger parentLogger, org.apache.avalon.framework.logger.Logger logger) Constructor to parse the configuration. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidconfigure(org.apache.avalon.framework.configuration.Configuration configuration) voidcontextualize(org.apache.avalon.framework.context.Context context) voidDecommisions a service component instance.voidenableLogging(org.apache.avalon.framework.logger.Logger logger) voidexecute()protected voidvoidvoidparameterize(org.apache.avalon.framework.parameters.Parameters parameters) voidReconfigures a service component instancevoidreconfigure(org.apache.avalon.framework.configuration.Configuration configuration) voidresume()voidservice(org.apache.avalon.framework.service.ServiceManager serviceManager) voidstart()voidstop()voidsuspend()Von Klasse geerbte Methoden org.apache.fulcrum.yaafi.framework.component.ServiceComponentImpl
createInstance, dispose, getConfiguration, getContext, getImplementationClazz, getInstance, getLogger, getName, getParamaters, getParentLogger, getRawInstance, getRoleEntry, getServiceManager, getShorthand, incarnate, isEarlyInit, isInstantiated, loadImplemtationClass, setConfiguration, setContext, setLogger, setParameters, setProxyInstance, setServiceManager, toString
-
Konstruktordetails
-
AvalonServiceComponentImpl
public AvalonServiceComponentImpl(RoleEntry roleEntry, org.apache.avalon.framework.logger.Logger parentLogger, org.apache.avalon.framework.logger.Logger logger) Constructor to parse the configuration.- Parameter:
roleEntry- The information extracted from the role configuration fileparentLogger- the logger of the service containerlogger- The logger for the service instance
-
-
Methodendetails
-
incarnateInstance
- Angegeben von:
incarnateInstancein KlasseServiceComponentImpl- Löst aus:
Exception- generic exception- Siehe auch:
-
reconfigure
Beschreibung aus Schnittstelle kopiert:ServiceComponentLifecycleReconfigures a service component instance- Angegeben von:
reconfigurein SchnittstelleServiceComponentLifecycle- Angegeben von:
reconfigurein KlasseServiceComponentImpl- Löst aus:
Exception- the operation failed
-
decommision
Beschreibung aus Schnittstelle kopiert:ServiceComponentLifecycleDecommisions a service component instance.- Angegeben von:
decommisionin SchnittstelleServiceComponentLifecycle- Setzt außer Kraft:
decommisionin KlasseServiceComponentImpl- Löst aus:
Exception- the operation failed
-
enableLogging
public void enableLogging(org.apache.avalon.framework.logger.Logger logger) - Parameter:
logger- logger to enable- Siehe auch:
-
contextualize
public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException - Parameter:
context- the context to add to this service- Löst aus:
org.apache.avalon.framework.context.ContextException- if unable to contextualize- Siehe auch:
-
service
public void service(org.apache.avalon.framework.service.ServiceManager serviceManager) throws org.apache.avalon.framework.service.ServiceException - Parameter:
serviceManager- instance of the service manager to work with- Löst aus:
org.apache.avalon.framework.service.ServiceException- throws exception if service failed for any reason- Siehe auch:
-
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException - Parameter:
configuration- the configuration- Löst aus:
org.apache.avalon.framework.configuration.ConfigurationException- if fails to contextualize the config- Siehe auch:
-
parameterize
public void parameterize(org.apache.avalon.framework.parameters.Parameters parameters) throws org.apache.avalon.framework.parameters.ParameterException - Parameter:
parameters- the parameters- Löst aus:
org.apache.avalon.framework.parameters.ParameterException- if unable to set the parameters- Siehe auch:
-
initialize
- Löst aus:
Exception- generic exception- Siehe auch:
-
execute
- Löst aus:
Exception- generic exception- Siehe auch:
-
start
- Löst aus:
Exception- generic exception- Siehe auch:
-
stop
- Löst aus:
Exception- generic exception- Siehe auch:
-
resume
public void resume()- Siehe auch:
-
suspend
public void suspend()- Siehe auch:
-
reconfigure
public void reconfigure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException - Parameter:
configuration- the configuration- Löst aus:
org.apache.avalon.framework.configuration.ConfigurationException- if unable to configure- Siehe auch:
-