Interface ServiceComponentLifecycle

All Known Subinterfaces:
ServiceComponent
All Known Implementing Classes:
AvalonServiceComponentImpl, ServiceComponentImpl

public interface ServiceComponentLifecycle
This class implements the lifecycle contract of a service component instance.
Author:
Siegfried Goeschl
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
  • Method Details

    • loadImplemtationClass

      void loadImplemtationClass(ClassLoader classLoader) throws ClassNotFoundException
      Loads the implementaion class.
      Parameters:
      classLoader - the classloader to use for loading the implementation class
      Throws:
      ClassNotFoundException - loading of the class failed
    • incarnate

      void incarnate() throws Exception
      Incarnates a service component instance.
      Throws:
      Exception - the operation failed
    • reconfigure

      void reconfigure() throws Exception
      Reconfigures a service component instance
      Throws:
      Exception - the operation failed
    • decommision

      void decommision() throws Exception
      Decommisions a service component instance.
      Throws:
      Exception - the operation failed
    • dispose

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

      Object getInstance() throws Exception
      Returns:
      Returns the instance of the singleton
      Throws:
      Exception - the operation failed
    • setLogger

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

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

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

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

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