|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powertac.common.config.Configurator
public class Configurator
Fills in configured values from configuration source based on annotations in the source code.
Configuration clauses are assumed to be of the form
pkg.class[.instance].property = value
where pkg is the package name without org.powertac, class is the
classname, instance is the optional instance name, and property is the
property name.
In the server, an instance of this class is typically created by a service that collects configuration data, creates and initializes a Configurator, then waits for each service to ask for its configuration.
| Constructor Summary | |
|---|---|
Configurator()
|
|
| Method Summary | |
|---|---|
Collection<?> |
configureInstances(Class<?> type)
Creates and configures instances of the given class. |
void |
configureSingleton(Object thing)
Configures the given thing, using the pre-loaded Configuration. |
void |
gatherPublishedConfiguration(Object thing,
ConfigurationRecorder recorder)
Pulls the "published" ConfigurableValues out of object thing, adds them to config. |
void |
setConfiguration(org.apache.commons.configuration.Configuration config)
Loads a Configuration into this Configurator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Configurator()
| Method Detail |
|---|
public void setConfiguration(org.apache.commons.configuration.Configuration config)
public void configureSingleton(Object thing)
public Collection<?> configureInstances(Class<?> type)
public void gatherPublishedConfiguration(Object thing,
ConfigurationRecorder recorder)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||