|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.radekzitek.userver.Configuration
Configuration class is used to manage the configuration data.
Field Summary | |
private static org.apache.log4j.Logger |
LOG
|
private java.util.Properties |
rawProperties
Used to store the raw properties loaded from configuration file. |
Constructor Summary | |
Configuration()
Creates configuration by loading it from bin/userver.properties file. |
|
Configuration(java.io.File file)
Creates configuration by loading it from given file. |
|
Configuration(java.io.InputStream inStream)
Creates configuration by loading it from given input stream. |
|
Configuration(java.lang.String fileName)
Creates configuration by loading it from given file. |
Method Summary | |
java.util.Properties |
getListenerConfiguration(java.lang.String listenerName)
For the given listener name retrieves all the configuration data. |
java.util.List |
getListenerNames()
Retrieves the list of the names of the listenrs specified by the configuration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final org.apache.log4j.Logger LOG
private java.util.Properties rawProperties
Constructor Detail |
public Configuration() throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
- Thrown if the gile is not found.
java.io.IOException
- Thrown when there is problem reading from the file.public Configuration(java.lang.String fileName) throws java.io.FileNotFoundException, java.io.IOException
fileName
- the name of the file to read the configuration from
java.io.FileNotFoundException
- Thrown if the gile is not found.
java.io.IOException
- Thrown when there is problem reading from the file.public Configuration(java.io.File file) throws java.io.FileNotFoundException, java.io.IOException
file
- the file to read the configuration from
java.io.FileNotFoundException
- Thrown if the gile is not found.
java.io.IOException
- Thrown when there is problem reading from the file.public Configuration(java.io.InputStream inStream) throws java.io.IOException
inStream
- the input stream to read the configuration from
java.io.IOException
- Thrown when there is problem reading from the file.Method Detail |
public java.util.List getListenerNames()
public java.util.Properties getListenerConfiguration(java.lang.String listenerName)
listenerName
- the name of the listener to retrieve the configuration for
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |