de.novanic.eventservice.config.loader
Interface ConfigurationLoader

All Known Implementing Classes:
DefaultConfigurationLoader, PropertyConfigurationLoader, WebDescriptorConfigurationLoader

public interface ConfigurationLoader

ConfigurationLoader is used by EventServiceConfigurationFactory to load the EventServiceConfiguration. There are different types/strategies to load the EventServiceConfiguration.

Author:
sstrohschein
Date: 23.10.2008
Time: 14:37:38
See Also:
PropertyConfigurationLoader, DefaultConfigurationLoader

Method Summary
 boolean isAvailable()
          Checks if the configuration is available and can be loaded.
 EventServiceConfiguration load()
          Loads the configuration with the loader.
 

Method Detail

isAvailable

boolean isAvailable()
Checks if the configuration is available and can be loaded. If no configuration is available, the load method load() shouldn't called.

Returns:
true when available, otherwise false

load

EventServiceConfiguration load()
Loads the configuration with the loader.

Returns:
EventServiceConfiguration the loaded configuration
Throws:
ConfigurationException - occurs when the configuration can't be loaded or if it contains unreadable values.