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
    Konstruktor
    Beschreibung
    Constructor
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    configure(org.apache.avalon.framework.configuration.Configuration configuration)
     
    void
    contextualize(org.apache.avalon.framework.context.Context context)
     
    void
     
    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
     
    void
     

    Von Klasse geerbte Methoden org.apache.avalon.framework.logger.AbstractLogEnabled

    enableLogging, getLogger, setupLogger, setupLogger, setupLogger

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 Schnittstelle org.apache.avalon.framework.service.Serviceable
      Löst aus:
      org.apache.avalon.framework.service.ServiceException
      Siehe auch:
      • Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
    • contextualize

      public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException
      Angegeben von:
      contextualize in Schnittstelle org.apache.avalon.framework.context.Contextualizable
      Löst aus:
      org.apache.avalon.framework.context.ContextException
      Siehe auch:
      • Contextualizable.contextualize(org.apache.avalon.framework.context.Context)
    • configure

      public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
      Angegeben von:
      configure in Schnittstelle org.apache.avalon.framework.configuration.Configurable
      Löst aus:
      org.apache.avalon.framework.configuration.ConfigurationException
      Siehe auch:
      • Configurable.configure(org.apache.avalon.framework.configuration.Configuration)
    • initialize

      public void initialize() throws Exception
      Angegeben von:
      initialize in Schnittstelle org.apache.avalon.framework.activity.Initializable
      Löst aus:
      Exception
      Siehe auch:
      • Initializable.initialize()
    • start

      public void start() throws Exception
      Angegeben von:
      start in Schnittstelle org.apache.avalon.framework.activity.Startable
      Löst aus:
      Exception
      Siehe auch:
      • Startable.start()
    • stop

      public void stop() throws Exception
      Angegeben von:
      stop in Schnittstelle org.apache.avalon.framework.activity.Startable
      Löst aus:
      Exception
      Siehe auch:
      • Startable.stop()
    • dispose

      public void dispose()
      Angegeben von:
      dispose in Schnittstelle org.apache.avalon.framework.activity.Disposable
      Siehe auch:
      • Disposable.dispose()
    • reconfigure

      public void reconfigure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
      Angegeben von:
      reconfigure in Schnittstelle org.apache.avalon.framework.configuration.Reconfigurable
      Löst aus:
      org.apache.avalon.framework.configuration.ConfigurationException
      Siehe auch:
      • Reconfigurable.reconfigure(org.apache.avalon.framework.configuration.Configuration)
    • run

      public void run()
      Polls for changes in the confguration to reconfigure either the whole container or just a list of services.
      Angegeben von:
      run in Schnittstelle Runnable
      Siehe auch:
    • onReconfigure

      protected void onReconfigure(ReconfigurationEntry reconfigurationEntry) throws Exception
      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