Schnittstelle ServiceComponentLifecycle

Alle bekannten Unterschnittstellen:
ServiceComponent
Alle bekannten Implementierungsklassen:
AvalonServiceComponentImpl, ServiceComponentImpl

public interface ServiceComponentLifecycle
This class implements the lifecycle contract of a service component instance.
Autor:
Siegfried Goeschl
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    Decommisions a service component instance.
    void
    Dispose a service component instance.
     
    void
    Incarnates a service component instance.
    void
    Loads the implementaion class.
    void
    Reconfigures a service component instance
    void
    setConfiguration(org.apache.avalon.framework.configuration.Configuration configuration)
    Sets the Configuration to be used by this component.
    void
    setContext(org.apache.avalon.framework.context.Context context)
    Sets the Context to be used by this component.
    void
    setLogger(org.apache.avalon.framework.logger.Logger logger)
    Sets the logger to be used by this component.
    void
    setParameters(org.apache.avalon.framework.parameters.Parameters parameters)
    Sets the Parameters to be used by this component.
    void
    setServiceManager(org.apache.avalon.framework.service.ServiceManager serviceManager)
    Sets the ServiceManager to be used by this component.
  • Methodendetails

    • loadImplemtationClass

      void loadImplemtationClass(ClassLoader classLoader) throws ClassNotFoundException
      Loads the implementaion class.
      Parameter:
      classLoader - the classloader to use for loading the implementation class
      Löst aus:
      ClassNotFoundException - loading of the class failed
    • incarnate

      void incarnate() throws Exception
      Incarnates a service component instance.
      Löst aus:
      Exception - the operation failed
    • reconfigure

      void reconfigure() throws Exception
      Reconfigures a service component instance
      Löst aus:
      Exception - the operation failed
    • decommision

      void decommision() throws Exception
      Decommisions a service component instance.
      Löst aus:
      Exception - the operation failed
    • dispose

      void dispose()
      Dispose a service component instance.
    • getInstance

      Object getInstance() throws Exception
      Gibt zurück:
      Returns the instance of the singleton
      Löst aus:
      Exception - the operation failed
    • setLogger

      void setLogger(org.apache.avalon.framework.logger.Logger logger)
      Sets the logger to be used by this component.
      Parameter:
      logger - The logger to set
    • setServiceManager

      void setServiceManager(org.apache.avalon.framework.service.ServiceManager serviceManager)
      Sets the ServiceManager to be used by this component.
      Parameter:
      serviceManager - The serviceManager to set.
    • setContext

      void setContext(org.apache.avalon.framework.context.Context context)
      Sets the Context to be used by this component.
      Parameter:
      context - The context to set.
    • setConfiguration

      void setConfiguration(org.apache.avalon.framework.configuration.Configuration configuration)
      Sets the Configuration to be used by this component.
      Parameter:
      configuration - The configuration to set.
    • setParameters

      void setParameters(org.apache.avalon.framework.parameters.Parameters parameters)
      Sets the Parameters to be used by this component.
      Parameter:
      parameters - The paramaters to set.