|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.novanic.eventservice.config.loader.PropertyConfigurationLoader
public class PropertyConfigurationLoader
PropertyConfigurationLoader is used by EventServiceConfigurationFactory
to load the EventServiceConfiguration with a properties file.
The default name of the properties is "eventservice.properties". For that file will be searched if not other defined.
| Constructor Summary | |
|---|---|
PropertyConfigurationLoader()
Creates a PropertyConfigurationLoader with the default properties ("eventservice.properties"). |
|
PropertyConfigurationLoader(java.lang.String aPropertyName)
Creates a PropertyConfigurationLoader with a properties file. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object anObject)
|
int |
hashCode()
|
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, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyConfigurationLoader()
PropertyConfigurationLoader with the default properties ("eventservice.properties").
public PropertyConfigurationLoader(java.lang.String aPropertyName)
PropertyConfigurationLoader with a properties file.
aPropertyName - properties file to load (the location must be attached to the classpath)| Method Detail |
|---|
public boolean isAvailable()
ConfigurationLoader.load() shouldn't called. In the case of PropertyConfigurationLoader the method
returns true when the location of the properties file is attached to the classpath.
isAvailable in interface ConfigurationLoaderpublic EventServiceConfiguration load()
load in interface ConfigurationLoaderEventServiceConfiguration the loaded configuration or NULL if the
properties file couldn't found with the classpath.
ConfigurationException - occurs when the configuration can't be loaded or if it contains unreadable values.public boolean equals(java.lang.Object anObject)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||