|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sump.analyzer.Project
public class Project
Project maintains a global properties list for all registered objects implementing Configurable.
It also provides methods for loading and storing these properties from and to project configuration files.
This allows to keep multiple sets of user settings across multiple instance lifecycles.
| Constructor Summary | |
|---|---|
Project()
Constructs a new project with an empty set of properties and configurable objects. |
|
| Method Summary | |
|---|---|
void |
addConfigurable(Configurable configurable)
Adds a configurable object to the project. |
Properties |
getProperties()
Gets all currently defined properties for this project. |
void |
load(java.io.File file)
Loads properties from the given file and notifies all registered configurable objects. |
void |
store(java.io.File file)
Stores properties fetched from all registered configurable objects in the given file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Project()
| Method Detail |
|---|
public void addConfigurable(Configurable configurable)
configurable - configurable objectpublic Properties getProperties()
public void load(java.io.File file)
throws java.io.IOException
file - file to read properties from
java.io.IOException - when IO operation failes
public void store(java.io.File file)
throws java.io.IOException
file - file to store properties in
java.io.IOException - when IO operation failes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||