public class Configurator extends Object
Configuration clauses are assumed to be of the form
pkg.class[.instance].property = value
where pkg is the package name without org.powertac
(or the full classname for classes outside the org.powertac hierarchy),
class is the classname (but the first character is lowercase),
instance is an optional instance name,
and property is the property name.
The target property must be annotated with
| Constructor and Description |
|---|
Configurator() |
| Modifier and Type | Method and Description |
|---|---|
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 |
gatherBootstrapList(List<Object> things,
ConfigurationRecorder recorder)
Pulls "bootstrapState" ConfigurationValues out of objects in the given
list, adds them to config with their names.
|
void |
gatherBootstrapState(Object thing,
ConfigurationRecorder recorder)
Pulls the "bootstrapState" ConfigurableValues out of object thing, adds
them to config.
|
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.
|
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)
public void gatherBootstrapState(Object thing, ConfigurationRecorder recorder)
public void gatherBootstrapList(List<Object> things, ConfigurationRecorder recorder)
Copyright © 2014. All Rights Reserved.