Class GenericService

  • All Implemented Interfaces:
    Service

    public class GenericService
    extends Object
    implements Service
    Interface for a service, including lifecycle.
    • Field Detail

      • config

        protected javax.servlet.ServletConfig config
    • Constructor Detail

      • GenericService

        public GenericService()
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig config)
                  throws javax.servlet.ServletException
        Initialize the service instance.
        Specified by:
        init in interface Service
        Parameters:
        config - the configuration for the service.
        Throws:
        javax.servlet.ServletException
      • init

        public void init()
                  throws javax.servlet.ServletException
        Initialize the service instance.
        Throws:
        javax.servlet.ServletException
      • getInitParameter

        public String getInitParameter​(String name)
        Returns the named initialization parameter.
      • getServletConfig

        public javax.servlet.ServletConfig getServletConfig()
        Returns the servlet context.
      • getServletContext

        public javax.servlet.ServletContext getServletContext()
        Returns the servlet context.
      • log

        public void log​(String message)
        Logs a message to the error stream.
      • getRequest

        public javax.servlet.ServletRequest getRequest()
        Returns the servlet request object for the request.
      • getServiceName

        public String getServiceName()
        Returns the service identifier for the request.
      • getServiceId

        public String getServiceId()
        Deprecated.
        Returns the service identifier for the request.
      • getObjectId

        public String getObjectId()
        Returns the object identifier for the request.
      • destroy

        public void destroy()
        Cleanup the service instance.
        Specified by:
        destroy in interface Service