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()
Stop and dispose the service implementation.
|
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, toString
public 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 ServiceComponentImpl
Exception
ServiceComponentLifecycle.incarnate()
public void reconfigure() throws Exception
ServiceComponentLifecycle
reconfigure
in interface ServiceComponentLifecycle
reconfigure
in class ServiceComponentImpl
Exception
- the operation failedServiceComponentLifecycle.reconfigure()
public void decommision() throws Exception
decommision
in interface ServiceComponentLifecycle
decommision
in class ServiceComponentImpl
Exception
- the operation failedServiceComponentLifecycle.decommision()
public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
logger
- LogEnabled.enableLogging(org.apache.avalon.framework.logger.Logger)
public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException
org.apache.avalon.framework.context.ContextException
Contextualizable.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
- org.apache.avalon.framework.service.ServiceException
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationException
Configurable.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
- org.apache.avalon.framework.parameters.ParameterException
Parameterizable.parameterize(org.apache.avalon.framework.parameters.Parameters)
public void initialize() throws Exception
Exception
Initializable.initialize()
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
- org.apache.avalon.framework.configuration.ConfigurationException
Reconfigurable.reconfigure(org.apache.avalon.framework.configuration.Configuration)
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.