Klasse AvalonServiceComponentImpl

java.lang.Object
org.apache.fulcrum.yaafi.framework.component.ServiceComponentImpl
org.apache.fulcrum.yaafi.framework.component.AvalonServiceComponentImpl
Alle implementierten Schnittstellen:
ServiceComponent, ServiceComponentLifecycle

public class AvalonServiceComponentImpl extends ServiceComponentImpl
This class implements a service component singleton with an arbitrary lifecycle.
Autor:
Siegfried Goeschl
  • Konstruktordetails

    • AvalonServiceComponentImpl

      public AvalonServiceComponentImpl(RoleEntry roleEntry, org.apache.avalon.framework.logger.Logger parentLogger, org.apache.avalon.framework.logger.Logger logger)
      Constructor to parse the configuration.
      Parameter:
      roleEntry - The information extracted from the role configuration file
      parentLogger - the logger of the service container
      logger - The logger for the service instance
  • Methodendetails

    • incarnateInstance

      protected void incarnateInstance() throws Exception
      Angegeben von:
      incarnateInstance in Klasse ServiceComponentImpl
      Löst aus:
      Exception - generic exception
      Siehe auch:
    • reconfigure

      public void reconfigure() throws Exception
      Beschreibung aus Schnittstelle kopiert: ServiceComponentLifecycle
      Reconfigures a service component instance
      Angegeben von:
      reconfigure in Schnittstelle ServiceComponentLifecycle
      Angegeben von:
      reconfigure in Klasse ServiceComponentImpl
      Löst aus:
      Exception - the operation failed
    • decommision

      public void decommision() throws Exception
      Beschreibung aus Schnittstelle kopiert: ServiceComponentLifecycle
      Decommisions a service component instance.
      Angegeben von:
      decommision in Schnittstelle ServiceComponentLifecycle
      Setzt außer Kraft:
      decommision in Klasse ServiceComponentImpl
      Löst aus:
      Exception - the operation failed
    • enableLogging

      public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
      Parameter:
      logger - logger to enable
      Siehe auch:
      • LogEnabled.enableLogging(org.apache.avalon.framework.logger.Logger)
    • contextualize

      public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException
      Parameter:
      context - the context to add to this service
      Löst aus:
      org.apache.avalon.framework.context.ContextException - if unable to contextualize
      Siehe auch:
      • Contextualizable.contextualize(org.apache.avalon.framework.context.Context)
    • service

      public void service(org.apache.avalon.framework.service.ServiceManager serviceManager) throws org.apache.avalon.framework.service.ServiceException
      Parameter:
      serviceManager - instance of the service manager to work with
      Löst aus:
      org.apache.avalon.framework.service.ServiceException - throws exception if service failed for any reason
      Siehe auch:
      • Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
    • configure

      public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
      Parameter:
      configuration - the configuration
      Löst aus:
      org.apache.avalon.framework.configuration.ConfigurationException - if fails to contextualize the config
      Siehe auch:
      • Configurable.configure(org.apache.avalon.framework.configuration.Configuration)
    • parameterize

      public void parameterize(org.apache.avalon.framework.parameters.Parameters parameters) throws org.apache.avalon.framework.parameters.ParameterException
      Parameter:
      parameters - the parameters
      Löst aus:
      org.apache.avalon.framework.parameters.ParameterException - if unable to set the parameters
      Siehe auch:
      • Parameterizable.parameterize(org.apache.avalon.framework.parameters.Parameters)
    • initialize

      public void initialize() throws Exception
      Löst aus:
      Exception - generic exception
      Siehe auch:
      • Initializable.initialize()
    • execute

      public void execute() throws Exception
      Löst aus:
      Exception - generic exception
      Siehe auch:
      • Executable.execute()
    • start

      public void start() throws Exception
      Löst aus:
      Exception - generic exception
      Siehe auch:
      • Startable.start()
    • stop

      public void stop() throws Exception
      Löst aus:
      Exception - generic exception
      Siehe auch:
      • Startable.stop()
    • resume

      public void resume()
      Siehe auch:
      • Suspendable.resume()
    • suspend

      public void suspend()
      Siehe auch:
      • Suspendable.suspend()
    • reconfigure

      public void reconfigure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
      Parameter:
      configuration - the configuration
      Löst aus:
      org.apache.avalon.framework.configuration.ConfigurationException - if unable to configure
      Siehe auch:
      • Reconfigurable.reconfigure(org.apache.avalon.framework.configuration.Configuration)