Interface Service

All Known Implementing Classes:
GenericService

public interface Service
Interface for a service lifecycle.

The lifecycle for a service starts with the init method when the service starts.

 myService.init(config);
 ...
 myService.hello();
 ...
 myService.hello();
 ...
 myService.destroy();
 
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cleanup the service instance.
    void
    init(javax.servlet.ServletConfig config)
    Initialize the service instance.
  • Method Details

    • init

      void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
      Initialize the service instance.
      Parameters:
      config - the configuration for the service.
      Throws:
      javax.servlet.ServletException
    • destroy

      void destroy()
      Cleanup the service instance.