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 TypMethodeBeschreibungvoid
configure
(org.apache.avalon.framework.configuration.Configuration configuration) void
contextualize
(org.apache.avalon.framework.context.Context context) void
dispose()
void
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()
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:
service
in 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:
contextualize
in 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:
configure
in Schnittstelleorg.apache.avalon.framework.configuration.Configurable
- Löst aus:
org.apache.avalon.framework.configuration.ConfigurationException
- Siehe auch:
-
initialize
- Angegeben von:
initialize
in Schnittstelleorg.apache.avalon.framework.activity.Initializable
- Löst aus:
Exception
- Siehe auch:
-
start
- Angegeben von:
start
in Schnittstelleorg.apache.avalon.framework.activity.Startable
- Löst aus:
Exception
- Siehe auch:
-
stop
- Angegeben von:
stop
in Schnittstelleorg.apache.avalon.framework.activity.Startable
- Löst aus:
Exception
- Siehe auch:
-
dispose
public void dispose()- Angegeben von:
dispose
in 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:
reconfigure
in 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
-