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 TypMethodeBeschreibungvoid
configure
(org.apache.avalon.framework.configuration.Configuration configuration) void
contextualize
(org.apache.avalon.framework.context.Context context) void
Decommisions a service component instance.void
enableLogging
(org.apache.avalon.framework.logger.Logger logger) void
execute()
protected void
void
void
parameterize
(org.apache.avalon.framework.parameters.Parameters parameters) void
Reconfigures a service component instancevoid
reconfigure
(org.apache.avalon.framework.configuration.Configuration configuration) void
resume()
void
service
(org.apache.avalon.framework.service.ServiceManager serviceManager) void
start()
void
stop()
void
suspend()
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:
incarnateInstance
in KlasseServiceComponentImpl
- Löst aus:
Exception
- generic exception- Siehe auch:
-
reconfigure
Beschreibung aus Schnittstelle kopiert:ServiceComponentLifecycle
Reconfigures a service component instance- Angegeben von:
reconfigure
in SchnittstelleServiceComponentLifecycle
- Angegeben von:
reconfigure
in KlasseServiceComponentImpl
- Löst aus:
Exception
- the operation failed
-
decommision
Beschreibung aus Schnittstelle kopiert:ServiceComponentLifecycle
Decommisions a service component instance.- Angegeben von:
decommision
in SchnittstelleServiceComponentLifecycle
- Setzt außer Kraft:
decommision
in 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:
-