|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jgap.data.config.RootConfigurationHandler
public class RootConfigurationHandler
The ConfigurationHandler for the Configuration class itself. This is the entry point for a Configuration. In other words this is for dynamically building up a Configuration.
| Constructor Summary | |
|---|---|
RootConfigurationHandler()
|
|
| Method Summary | |
|---|---|
static void |
configureClass(java.lang.String className)
Retrieve all instances of a certain property from the config file reader and configure each of these. |
java.util.List |
getConfigProperties()
Return the information to generate the GUI for configuring this class. |
java.lang.String |
getName()
Return the name of this Configuration Object to be used in the properties file. |
java.lang.String |
getNS()
Get the namespace to be used in the config file for the Configurable this ConfigurationHandler belongs to. |
static java.lang.reflect.Field |
getPrivateField(java.lang.Object a_instance,
java.lang.String a_fieldName)
Helper method: Read a private field. |
void |
readConfig()
Method that will populate an Configurable with the properties in the config file. |
void |
setConfigProperty(java.lang.Object a_configurable,
java.lang.String a_propertyName,
java.lang.String a_value)
Sets the property of a configurable to a given value. |
void |
setConfigurable(Configurable a_configurable)
Set the Configurable to which this ConfigurationHandler belongs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RootConfigurationHandler()
| Method Detail |
|---|
public java.lang.String getName()
ConfigurationHandler
getName in interface ConfigurationHandlerpublic java.util.List getConfigProperties()
getConfigProperties in interface ConfigurationHandlerpublic java.lang.String getNS()
getNS in interface ConfigurationHandler
public void readConfig()
throws ConfigException,
InvalidConfigurationException
readConfig in interface ConfigurationHandlerConfigException
InvalidConfigurationExceptionpublic void setConfigurable(Configurable a_configurable)
setConfigurable in interface ConfigurationHandlera_configurable - the Configurable to which this ConfigurationHandler
belongs
public void setConfigProperty(java.lang.Object a_configurable,
java.lang.String a_propertyName,
java.lang.String a_value)
throws java.lang.IllegalAccessException
a_configurable - the configurable to usea_propertyName - the property to seta_value - the value to assign to the property
java.lang.IllegalAccessException
public static java.lang.reflect.Field getPrivateField(java.lang.Object a_instance,
java.lang.String a_fieldName)
a_instance - the instance the field is contained witha_fieldName - the name of the field to read
public static void configureClass(java.lang.String className)
throws ConfigException
className - the name of the property to configure
ConfigException
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||