|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.ldap.props.ConfigParser
public class ConfigParser
Parses the configuration data associated with classes that contain setter properties. The format of the property string should be like:
MyClass{{propertyOne=foo}{propertyTwo=bar}}
| Constructor Summary | |
|---|---|
ConfigParser(String config)
Creates a new ConfigParser with the supplied configuration
string. |
|
| Method Summary | |
|---|---|
String |
getClassName()
Returns the class name from the configuration. |
Map<String,String> |
getProperties()
Returns the properties from the configuration. |
Object |
initializeType()
Initialize an instance of the class type with the properties contained in this config. |
static boolean |
isConfig(String config)
Returns whether the supplied configuration data contains a config. |
protected void |
setProperties(Class<?> c,
Object o)
Sets the properties on the supplied object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigParser(String config)
ConfigParser with the supplied configuration
string.
config - String| Method Detail |
|---|
public String getClassName()
String class namepublic Map<String,String> getProperties()
Map of property name to valuepublic static boolean isConfig(String config)
config - String
booleanpublic Object initializeType()
Object of the type the config parsed
protected void setProperties(Class<?> c,
Object o)
c - Class type of the supplied objecto - Object to invoke properties on
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||