Class ServiceService

java.lang.Object
edu.ucsb.nceas.metacat.service.ServiceService

public class ServiceService extends Object
  • Field Details

    • CONFIG_FILE_NAME

      public static String CONFIG_FILE_NAME
  • Method Details

    • getInstance

      public static ServiceService getInstance(javax.servlet.ServletContext servletContext)
      Get the single instance of ServiceService.
      Returns:
      the single instance of ServiceService
    • registerService

      public static void registerService(String serviceName, BaseService service) throws ServiceException
      Register a service with the system.
      Parameters:
      serviceName - the name of the service
      service - the singleton instance of the service
      Throws:
      ServiceException
    • refreshService

      public static void refreshService(String serviceName) throws ServiceException
      Refresh a service.
      Parameters:
      serviceName - the name of the service to refresh
      Throws:
      ServiceException
    • stopAllServices

      public static void stopAllServices()
    • getRealConfigDir

      public static String getRealConfigDir() throws ServiceException
      Convert the relative config directory to a full path
      Returns:
      the full config path
      Throws:
      ServiceException
    • getRealSkinDir

      public static String getRealSkinDir() throws ServiceException
      Convert the relative skins directory to a full path
      Returns:
      the full skins directory path
      Throws:
      ServiceException
    • getRealApplicationContext

      public static String getRealApplicationContext() throws ServiceException
      Get the servlet context name
      Returns:
      a string holding the context name
      Throws:
      ServiceException