@WebListener public class AutoDeployer extends Object implements javax.servlet.ServletContextListener
| Constructor and Description |
|---|
AutoDeployer() |
| 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.descriptor.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
Configuration.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.exception.ServiceException
Configuration.SERVICE_DEPLOY_DIR. The directory must contain a file
Configuration.AUTODEPLOY_DEPLOYMENT_CONFIG_FILE_NAME containing a serialized
(json)list of ServiceCreateDescriptor. All configured service-bundles must be
specified relatively to the config directory.com.airepublic.microverse.core.exception.ServiceExceptionprotected void deployConfiguredServices(Path configDir, com.airepublic.microverse.core.descriptor.ServiceCreateDescriptorList descriptors) throws com.airepublic.microverse.core.exception.ServiceException
ServiceCreateDescriptor. All configured
service-bundles must be specified relatively to the config directory.com.airepublic.microverse.core.exception.ServiceExceptionCopyright © 2016. All rights reserved.