Klasse ReconfigurationServiceImpl
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.yaafi.service.reconfiguration.ReconfigurationServiceImpl
- Alle implementierten Schnittstellen:
Runnable,org.apache.avalon.framework.activity.Disposable,org.apache.avalon.framework.activity.Initializable,org.apache.avalon.framework.activity.Startable,org.apache.avalon.framework.configuration.Configurable,org.apache.avalon.framework.configuration.Reconfigurable,org.apache.avalon.framework.context.Contextualizable,org.apache.avalon.framework.logger.LogEnabled,org.apache.avalon.framework.service.Serviceable,ReconfigurationService
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, Runnable, org.apache.avalon.framework.activity.Startable, org.apache.avalon.framework.activity.Disposable
Monitors the componentConfiguration.xml and triggers a reconfiguration if the
content of the component configuration file has changed.
- Autor:
- Siegfried Goeschl
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidconfigure(org.apache.avalon.framework.configuration.Configuration configuration) voidcontextualize(org.apache.avalon.framework.context.Context context) voiddispose()voidprotected voidonReconfigure(ReconfigurationEntry reconfigurationEntry) Reconfigure either the whole container or a list of services.voidreconfigure(org.apache.avalon.framework.configuration.Configuration configuration) voidrun()Polls for changes in the confguration to reconfigure either the whole container or just a list of services.voidservice(org.apache.avalon.framework.service.ServiceManager manager) voidstart()voidstop()Von Klasse geerbte Methoden org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Konstruktordetails
-
ReconfigurationServiceImpl
public ReconfigurationServiceImpl()Constructor
-
-
Methodendetails
-
service
public void service(org.apache.avalon.framework.service.ServiceManager manager) throws org.apache.avalon.framework.service.ServiceException - Angegeben von:
servicein Schnittstelleorg.apache.avalon.framework.service.Serviceable- Löst aus:
org.apache.avalon.framework.service.ServiceException- Siehe auch:
-
contextualize
public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException - Angegeben von:
contextualizein Schnittstelleorg.apache.avalon.framework.context.Contextualizable- Löst aus:
org.apache.avalon.framework.context.ContextException- Siehe auch:
-
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException - Angegeben von:
configurein Schnittstelleorg.apache.avalon.framework.configuration.Configurable- Löst aus:
org.apache.avalon.framework.configuration.ConfigurationException- Siehe auch:
-
initialize
- Angegeben von:
initializein Schnittstelleorg.apache.avalon.framework.activity.Initializable- Löst aus:
Exception- Siehe auch:
-
start
- Angegeben von:
startin Schnittstelleorg.apache.avalon.framework.activity.Startable- Löst aus:
Exception- Siehe auch:
-
stop
- Angegeben von:
stopin Schnittstelleorg.apache.avalon.framework.activity.Startable- Löst aus:
Exception- Siehe auch:
-
dispose
public void dispose()- Angegeben von:
disposein Schnittstelleorg.apache.avalon.framework.activity.Disposable- Siehe auch:
-
reconfigure
public void reconfigure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException - Angegeben von:
reconfigurein Schnittstelleorg.apache.avalon.framework.configuration.Reconfigurable- Löst aus:
org.apache.avalon.framework.configuration.ConfigurationException- Siehe auch:
-
run
public void run()Polls for changes in the confguration to reconfigure either the whole container or just a list of services. -
onReconfigure
Reconfigure either the whole container or a list of services. This method is called within a seperate worker thred.- Parameter:
reconfigurationEntry- the configuration what to reconfigure- Löst aus:
Exception- the reconfiguration failed
-