|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcafe.settings.Settings
public class Settings
This class implements Configuration interface. It provides settings to other components by parsing configuration files.
| Constructor Summary | |
|---|---|
Settings()
Constructs new Settings and checks that the main settings file settings.xml
is available |
|
Settings(java.lang.String settingsFileUri)
Constructs new Settings and checks that the main settings file is available at the given location. |
|
| Method Summary | |
|---|---|
AuthenticationSettings |
getAuthenticationSettings()
|
DBSettings |
getDBSettings()
Parses database settings from settings file. |
FingerprintSettings |
getFingerprintSettings()
Parses settings for the fingerprint authentication component from settings file. |
GUISettings |
getGUISettings()
Parses graphical user interface settings from settings file. |
java.lang.String |
getProperty(java.lang.String propertyName)
Gets a property from property file |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Settings()
throws java.io.FileNotFoundException,
java.io.IOException,
java.util.InvalidPropertiesFormatException
settings.xml
is available
java.io.FileNotFoundException - if settings file is not found.
java.io.IOException - if reading from the file results in an IOException.
java.util.InvalidPropertiesFormatException - Data on file does not constitute a
valid XML document with the mandated document type.
public Settings(java.lang.String settingsFileUri)
throws java.io.FileNotFoundException,
java.io.IOException,
java.util.InvalidPropertiesFormatException
settingsFileUri - Path to the main settings file.
java.io.FileNotFoundException - if settings file is not found.
java.io.IOException - if reading from the file results in an IOException.
java.util.InvalidPropertiesFormatException - Data on file does not constitute a
valid XML document with the mandated document type.| Method Detail |
|---|
public java.lang.String getProperty(java.lang.String propertyName)
public DBSettings getDBSettings()
throws java.io.FileNotFoundException,
java.io.IOException,
java.util.InvalidPropertiesFormatException
getDBSettings in interface Configurationjava.io.FileNotFoundException - if settings file is not found.
java.io.IOException - if reading from the file results in an IOException.
java.util.InvalidPropertiesFormatException - Data on file does not constitute a
valid XML document with the mandated document type.
public GUISettings getGUISettings()
throws java.io.FileNotFoundException,
java.io.IOException,
java.util.InvalidPropertiesFormatException
getGUISettings in interface Configurationjava.io.FileNotFoundException - if settings file is not found.
java.io.IOException - if reading from the file results in an IOException.
java.util.InvalidPropertiesFormatException - Data on file does not constitute a
valid XML document with the mandated document type.public FingerprintSettings getFingerprintSettings()
getFingerprintSettings in interface Configurationpublic AuthenticationSettings getAuthenticationSettings()
getAuthenticationSettings in interface Configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||