Schnittstelle ServiceLifecycleManager

Alle bekannten Unterschnittstellen:
ServiceContainer
Alle bekannten Implementierungsklassen:
ServiceContainerImpl

public interface ServiceLifecycleManager
Interface for managing the lifecycle of services. It provides methods to get
  • metadata about the service components
  • reconfiguring a single service
  • decommissioning a signle service
Autor:
Siegfried Goeschl
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    Decommision the given service by calling Startable.stop() and Disposable.dispose().
    Get a list of all RoleEntries.
    Get a RoleEntryImpl for a given service
    void
    Reconfigures a set of services by calling Suspendable.suspend(), Reconfigurable.reconfigure() and Suspendable.resume().
  • Methodendetails

    • getRoleEntry

      RoleEntry getRoleEntry(String name) throws org.apache.avalon.framework.service.ServiceException
      Get a RoleEntryImpl for a given service
      Parameter:
      name - the name of the service component
      Gibt zurück:
      the RoleEntryImpl
      Löst aus:
      org.apache.avalon.framework.service.ServiceException - the service was not found
    • getRoleEntries

      RoleEntry[] getRoleEntries()
      Get a list of all RoleEntries.
      Gibt zurück:
      a list of RoleEntries
    • reconfigure

      void reconfigure(String[] names) throws org.apache.avalon.framework.service.ServiceException, org.apache.avalon.framework.configuration.ConfigurationException
      Reconfigures a set of services by calling Suspendable.suspend(), Reconfigurable.reconfigure() and Suspendable.resume().
      Parameter:
      names - the set of services to be reconfigured
      Löst aus:
      org.apache.avalon.framework.service.ServiceException - one of the service was not found
      org.apache.avalon.framework.configuration.ConfigurationException - the reconfiguration failed
    • decommission

      void decommission(String name) throws org.apache.avalon.framework.service.ServiceException
      Decommision the given service by calling Startable.stop() and Disposable.dispose(). The state of the service component is the same as using lazy initialization. Therefore a new service instance will be created if the service is reused again. If you are keeping an instance of the service you are out of luck.
      Parameter:
      name - the name of the service
      Löst aus:
      org.apache.avalon.framework.service.ServiceException - the service was not found