@WebListener public class StartupDeployer extends Object implements com.airepublic.microverse.core.common.ConfigConstants, javax.servlet.ServletContextListener
| Constructor and Description |
|---|
StartupDeployer() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent sce) |
void |
contextInitialized(javax.servlet.ServletContextEvent event) |
protected void |
deployConfiguredServices(Path configDir,
com.airepublic.microverse.core.common.ServiceCreateDescriptorList descriptors)
Loads configured services from a directory found by the system property 'microverse.service.config.dir'.
|
protected void |
loadConfiguredServices()
Loads configured services from a directory found by the system property
ConfigConstants.SERVICE_DEPLOY_DIR. |
public void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized in interface javax.servlet.ServletContextListenerpublic void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed in interface javax.servlet.ServletContextListenerprotected void loadConfiguredServices()
throws com.airepublic.microverse.core.common.ServiceException
ConfigConstants.SERVICE_DEPLOY_DIR. The directory must contain a file
ConfigConstants.FILE_NAME_SERVICES_DEPLOYMENT_CONFIG containing a serialized (json)list of ServiceCreateDescriptor. All configured service-bundles must be specified relatively
to the config directory.com.airepublic.microverse.core.common.ServiceExceptionprotected void deployConfiguredServices(Path configDir, com.airepublic.microverse.core.common.ServiceCreateDescriptorList descriptors) throws com.airepublic.microverse.core.common.ServiceException
ServiceCreateDescriptor. All configured service-bundles must be specified relatively to the config directory.com.airepublic.microverse.core.common.ServiceExceptionCopyright © 2016. All rights reserved.