Package edu.ucsb.nceas.metacat.service
Class ServiceService
java.lang.Object
edu.ucsb.nceas.metacat.service.ServiceService
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceServicegetInstance(javax.servlet.ServletContext servletContext) Get the single instance of ServiceService.static StringGet the servlet context namestatic StringConvert the relative config directory to a full pathstatic StringConvert the relative skins directory to a full pathstatic voidrefreshService(String serviceName) Refresh a service.static voidregisterService(String serviceName, BaseService service) Register a service with the system.static void
-
Field Details
-
CONFIG_FILE_NAME
-
-
Method Details
-
getInstance
Get the single instance of ServiceService.- Returns:
- the single instance of ServiceService
-
refreshService
Refresh a service.- Parameters:
serviceName- the name of the service to refresh- Throws:
ServiceException
-
stopAllServices
public static void stopAllServices() -
getRealConfigDir
Convert the relative config directory to a full path- Returns:
- the full config path
- Throws:
ServiceException
-
getRealSkinDir
Convert the relative skins directory to a full path- Returns:
- the full skins directory path
- Throws:
ServiceException
-
getRealApplicationContext
Get the servlet context name- Returns:
- a string holding the context name
- Throws:
ServiceException
-