public class AvalonServiceComponentImpl extends ServiceComponentImpl
| Constructor and Description |
|---|
AvalonServiceComponentImpl(RoleEntry roleEntry,
org.apache.avalon.framework.logger.Logger parentLogger,
org.apache.avalon.framework.logger.Logger logger)
Constructor to parse the configuration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration) |
void |
contextualize(org.apache.avalon.framework.context.Context context) |
void |
decommision()
Decommisions a service component instance.
|
void |
enableLogging(org.apache.avalon.framework.logger.Logger logger) |
void |
execute() |
protected void |
incarnateInstance() |
void |
initialize() |
void |
parameterize(org.apache.avalon.framework.parameters.Parameters parameters) |
void |
reconfigure()
Reconfigures a service component instance
|
void |
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() |
createInstance, dispose, getConfiguration, getContext, getImplementationClazz, getInstance, getLogger, getName, getParamaters, getParentLogger, getRawInstance, getRoleEntry, getServiceManager, getShorthand, incarnate, isEarlyInit, isInstantiated, loadImplemtationClass, setConfiguration, setContext, setLogger, setParameters, setProxyInstance, setServiceManager, toStringpublic AvalonServiceComponentImpl(RoleEntry roleEntry, org.apache.avalon.framework.logger.Logger parentLogger, org.apache.avalon.framework.logger.Logger logger)
roleEntry - The information extracted from the role configuration fileparentLogger - the logger of the service containerlogger - The logger for the service instanceprotected void incarnateInstance() throws Exception
incarnateInstance in class ServiceComponentImplException - generic exceptionServiceComponentLifecycle.incarnate()public void reconfigure() throws Exception
ServiceComponentLifecyclereconfigure in interface ServiceComponentLifecyclereconfigure in class ServiceComponentImplException - the operation failedpublic void decommision() throws Exception
ServiceComponentLifecycledecommision in interface ServiceComponentLifecycledecommision in class ServiceComponentImplException - the operation failedpublic void enableLogging(org.apache.avalon.framework.logger.Logger logger)
logger - logger to enableLogEnabled.enableLogging(org.apache.avalon.framework.logger.Logger)public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException
context - the context to add to this serviceorg.apache.avalon.framework.context.ContextException - if unable to contextualizeContextualizable.contextualize(org.apache.avalon.framework.context.Context)public void service(org.apache.avalon.framework.service.ServiceManager serviceManager) throws org.apache.avalon.framework.service.ServiceException
serviceManager - instance of the service manager to work withorg.apache.avalon.framework.service.ServiceException - throws exception if service failed for any reasonServiceable.service(org.apache.avalon.framework.service.ServiceManager)public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configuration - the configurationorg.apache.avalon.framework.configuration.ConfigurationException - if fails to contextualize the configConfigurable.configure(org.apache.avalon.framework.configuration.Configuration)public void parameterize(org.apache.avalon.framework.parameters.Parameters parameters) throws org.apache.avalon.framework.parameters.ParameterException
parameters - the parametersorg.apache.avalon.framework.parameters.ParameterException - if unable to set the parametersParameterizable.parameterize(org.apache.avalon.framework.parameters.Parameters)public void initialize() throws Exception
Exception - generic exceptionInitializable.initialize()public void execute() throws Exception
Exception - generic exceptionExecutable.execute()public void start() throws Exception
Exception - generic exceptionStartable.start()public void stop() throws Exception
Exception - generic exceptionStartable.stop()public void resume()
Suspendable.resume()public void suspend()
Suspendable.suspend()public void reconfigure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configuration - the configurationorg.apache.avalon.framework.configuration.ConfigurationException - if unable to configureReconfigurable.reconfigure(org.apache.avalon.framework.configuration.Configuration)Copyright © 2004–1970 The Apache Software Foundation. All rights reserved.