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, toStringpublic 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 ServiceComponentImpljava.lang.ExceptionServiceComponentLifecycle.incarnate()public void reconfigure()
throws java.lang.Exception
ServiceComponentLifecyclereconfigure in interface ServiceComponentLifecyclereconfigure in class ServiceComponentImpljava.lang.Exception - the operation failedServiceComponentLifecycle.reconfigure()public void decommision()
throws java.lang.Exception
decommision in interface ServiceComponentLifecycledecommision in class ServiceComponentImpljava.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.ContextExceptionContextualizable.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.ServiceExceptionServiceable.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.ConfigurationExceptionConfigurable.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.ParameterExceptionParameterizable.parameterize(org.apache.avalon.framework.parameters.Parameters)public void initialize()
throws java.lang.Exception
java.lang.ExceptionInitializable.initialize()public void execute()
throws java.lang.Exception
java.lang.ExceptionExecutable.execute()public void start()
throws java.lang.Exception
java.lang.ExceptionStartable.start()public void stop()
throws java.lang.Exception
java.lang.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
org.apache.avalon.framework.configuration.ConfigurationExceptionReconfigurable.reconfigure(org.apache.avalon.framework.configuration.Configuration)Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.