Package edu.ucsb.nceas.metacat.service
Class ServiceService
java.lang.Object
edu.ucsb.nceas.metacat.service.ServiceService
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceService
getInstance
(javax.servlet.ServletContext servletContext) Get the single instance of ServiceService.static String
Get the servlet context namestatic String
Convert the relative config directory to a full pathstatic String
Convert the relative skins directory to a full pathstatic void
refreshService
(String serviceName) Refresh a service.static void
registerService
(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
-