public class ReconfigurationServiceImpl extends org.apache.avalon.framework.logger.AbstractLogEnabled implements ReconfigurationService, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.configuration.Reconfigurable, org.apache.avalon.framework.activity.Initializable, java.lang.Runnable, org.apache.avalon.framework.activity.Startable, org.apache.avalon.framework.activity.Disposable
Constructor and Description |
---|
ReconfigurationServiceImpl()
Constructor
|
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 |
dispose() |
void |
initialize() |
protected void |
onReconfigure(ReconfigurationEntry reconfigurationEntry)
Reconfigure either the whole container or a list of services.
|
void |
reconfigure(org.apache.avalon.framework.configuration.Configuration configuration) |
void |
run()
Polls for changes in the confguration to reconfigure either the
whole container or just a list of services.
|
void |
service(org.apache.avalon.framework.service.ServiceManager manager) |
void |
start() |
void |
stop() |
public void service(org.apache.avalon.framework.service.ServiceManager manager) throws org.apache.avalon.framework.service.ServiceException
service
in interface org.apache.avalon.framework.service.Serviceable
org.apache.avalon.framework.service.ServiceException
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException
contextualize
in interface org.apache.avalon.framework.context.Contextualizable
org.apache.avalon.framework.context.ContextException
Contextualizable.contextualize(org.apache.avalon.framework.context.Context)
public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)
public void initialize() throws java.lang.Exception
initialize
in interface org.apache.avalon.framework.activity.Initializable
java.lang.Exception
Initializable.initialize()
public void start() throws java.lang.Exception
start
in interface org.apache.avalon.framework.activity.Startable
java.lang.Exception
Startable.start()
public void stop() throws java.lang.Exception
stop
in interface org.apache.avalon.framework.activity.Startable
java.lang.Exception
Startable.stop()
public void dispose()
dispose
in interface org.apache.avalon.framework.activity.Disposable
Disposable.dispose()
public void reconfigure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
reconfigure
in interface org.apache.avalon.framework.configuration.Reconfigurable
org.apache.avalon.framework.configuration.ConfigurationException
Reconfigurable.reconfigure(org.apache.avalon.framework.configuration.Configuration)
public void run()
run
in interface java.lang.Runnable
Runnable.run()
protected void onReconfigure(ReconfigurationEntry reconfigurationEntry) throws java.lang.Exception
reconfigurationEntry
- the configuration what to reconfigurejava.lang.Exception
- the reconfiguration failedCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.