Class GenericService

  • All Implemented Interfaces:
    Service

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

      Fields 
      Modifier and Type Field Description
      protected javax.servlet.ServletConfig config  
    • Constructor Summary

      Constructors 
      Constructor Description
      GenericService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void destroy()
      Cleanup the service instance.
      java.lang.String getInitParameter​(java.lang.String name)
      Returns the named initialization parameter.
      java.lang.String getObjectId()
      Returns the object identifier for the request.
      javax.servlet.ServletRequest getRequest()
      Returns the servlet request object for the request.
      java.lang.String getServiceId()
      Deprecated. 
      java.lang.String getServiceName()
      Returns the service identifier for the request.
      javax.servlet.ServletConfig getServletConfig()
      Returns the servlet context.
      javax.servlet.ServletContext getServletContext()
      Returns the servlet context.
      void init()
      Initialize the service instance.
      void init​(javax.servlet.ServletConfig config)
      Initialize the service instance.
      void log​(java.lang.String message)
      Logs a message to the error stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 java.lang.String getInitParameter​(java.lang.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​(java.lang.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 java.lang.String getServiceName()
        Returns the service identifier for the request.
      • getServiceId

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

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

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