public class WebDescriptorConfigurationLoader extends Object implements ConfigurationLoader
EventServiceConfigurationFactory
to load the EventServiceConfiguration
with the servlet parameters / init-parameters
of the web-descriptor.Constructor and Description |
---|
WebDescriptorConfigurationLoader(javax.servlet.ServletConfig aServletConfig)
Creates a
WebDescriptorConfigurationLoader with a servlet config
(ServletConfig ). |
Modifier and Type | Method and Description |
---|---|
boolean |
isAvailable()
Checks if the configuration is available and can be loaded.
|
EventServiceConfiguration |
load()
Loads the configuration with the
WebDescriptorConfigurationLoader . |
public WebDescriptorConfigurationLoader(javax.servlet.ServletConfig aServletConfig)
WebDescriptorConfigurationLoader
with a servlet config
(ServletConfig
).aServletConfig
- servlet configpublic boolean isAvailable()
ConfigurationLoader.load()
shouldn't called. In the case of WebDescriptorConfigurationLoader
the method
returns true when the init-parameters for the servlet are registered in the web-descriptor.isAvailable
in interface ConfigurationLoader
public EventServiceConfiguration load()
WebDescriptorConfigurationLoader
.load
in interface ConfigurationLoader
EventServiceConfiguration
the loaded configurationConfigurationException
- occurs when the configuration can't be loaded or if it contains unreadable values.Copyright © 2012. All Rights Reserved.