|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aitools.programd.util.Settings
public abstract class Settings
A Settings object can read properties from a given path, or initialize itself with default values. It also contains getter and setter methods for every property value. Usually the subclasses of Settings will be generated automatically from some other structure, such as (as currently) the properties file itself, since it's annoying to create and maintain these by hand.
| Field Summary | |
|---|---|
protected URL |
path
Path to the properties. |
protected Properties |
properties
The properties. |
| Constructor Summary | |
|---|---|
Settings()
Creates a new Settings object, initializing it with default values. |
|
Settings(URL propertiesPath)
Creates a new Settings object, filling it with properties read from the given path. |
|
| Method Summary | |
|---|---|
protected abstract void |
initialize()
Initializes the Settings object with values from properties as read, or defaults (if properties are not provided). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected URL path
protected Properties properties
| Constructor Detail |
|---|
public Settings()
public Settings(URL propertiesPath)
propertiesPath - the path to the properties file| Method Detail |
|---|
protected abstract void initialize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||