de.novanic.eventservice.config.loader
Class DefaultConfigurationLoader

java.lang.Object
  extended by de.novanic.eventservice.config.loader.DefaultConfigurationLoader
All Implemented Interfaces:
ConfigurationLoader

public class DefaultConfigurationLoader
extends java.lang.Object
implements ConfigurationLoader

DefaultConfigurationLoader is used by EventServiceConfigurationFactory if no configuration could be found.
The default values:
- Min waiting time: 0
- Max waiting time: 20000
- Timeout time: 90000 A description for the values can be found in EventServiceConfiguration or in the manual.

Author:
sstrohschein
Date: 23.10.2008
Time: 14:42:26

Constructor Summary
DefaultConfigurationLoader()
           
 
Method Summary
 boolean equals(java.lang.Object anObject)
           
 boolean isAvailable()
          Checks if the configuration is available and can be loaded.
 EventServiceConfiguration load()
          Loads the configuration with the loader.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConfigurationLoader

public DefaultConfigurationLoader()
Method Detail

isAvailable

public boolean isAvailable()
Checks if the configuration is available and can be loaded. If no configuration is available, the load method ConfigurationLoader.load() shouldn't called. In the case of DefaultConfigurationLoader it returns always true, because the default configuration is available in any case.

Specified by:
isAvailable in interface ConfigurationLoader
Returns:
true when available, otherwise false. In the case of DefaultConfigurationLoader it returns always true, because the default configuration is available in any case.

load

public EventServiceConfiguration load()
Loads the configuration with the loader.

Specified by:
load in interface ConfigurationLoader
Returns:
the loaded configuration (EventServiceConfiguration)

equals

public boolean equals(java.lang.Object anObject)
Overrides:
equals in class java.lang.Object