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,
ReadWriteLock readWriteLock)
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, getReadWriteLock, 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, ReadWriteLock readWriteLock)
roleEntry
- The information extracted from the role configuration fileparentLogger
- the logger of the service containerlogger
- The logger for the service instancereadWriteLock
- the read/write lock to synchronize access to servicesprotected void incarnateInstance() throws java.lang.Exception
incarnateInstance
in class ServiceComponentImpl
java.lang.Exception
ServiceComponentLifecycle.incarnate()
public void reconfigure() throws java.lang.Exception
ServiceComponentLifecycle
reconfigure
in interface ServiceComponentLifecycle
reconfigure
in class ServiceComponentImpl
java.lang.Exception
- the operation failedServiceComponentLifecycle.reconfigure()
public void decommision() throws java.lang.Exception
decommision
in interface ServiceComponentLifecycle
decommision
in class ServiceComponentImpl
java.lang.Exception
- the operation failedServiceComponentLifecycle.decommision()
public void enableLogging(org.apache.avalon.framework.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
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
org.apache.avalon.framework.parameters.ParameterException
Parameterizable.parameterize(org.apache.avalon.framework.parameters.Parameters)
public void initialize() throws java.lang.Exception
java.lang.Exception
Initializable.initialize()
public void execute() throws java.lang.Exception
java.lang.Exception
Executable.execute()
public void start() throws java.lang.Exception
java.lang.Exception
Startable.start()
public void stop() throws java.lang.Exception
java.lang.Exception
Startable.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
org.apache.avalon.framework.configuration.ConfigurationException
Reconfigurable.reconfigure(org.apache.avalon.framework.configuration.Configuration)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.