edu.vt.middleware.ldap.props
public class LdapConfigPropertyInvoker extends AbstractPropertyInvoker
PropertyInvoker
stores setter methods for a class to make method
invocation by property easier.clazz, logger, properties, PROPERTIES_CACHE
Constructor and Description |
---|
LdapConfigPropertyInvoker(java.lang.Class<?> c,
java.lang.String propertiesDomain)
Creates a new
PropertyInvoker for the supplied class. |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
convertValue(java.lang.Class<?> type,
java.lang.String value)
This converts the supplied string value into an Object of the appropriate
supplied type.
|
protected java.lang.Object |
createArrayTypeFromPropertyValue(java.lang.Class<?> c,
java.lang.String s)
Returns the object which represents an array of the supplied class given
the supplied string representation.
|
protected java.lang.Object |
createTypeFromPropertyValue(java.lang.Class<?> c,
java.lang.String s)
Returns the object which represents the supplied class given the supplied
string representation.
|
createClass, getProperties, hasProperty, initialize, instantiateType, invokeMethod, setProperty
public LdapConfigPropertyInvoker(java.lang.Class<?> c, java.lang.String propertiesDomain)
PropertyInvoker
for the supplied class.c
- Class
that has setter methodspropertiesDomain
- String
to prepend to each setter
nameprotected java.lang.Object convertValue(java.lang.Class<?> type, java.lang.String value)
convertValue
in class AbstractPropertyInvoker
type
- of object to convert value intovalue
- to parseprotected java.lang.Object createTypeFromPropertyValue(java.lang.Class<?> c, java.lang.String s)
c
- Class
type to instantiates
- String
to parseObject
of the supplied type or nullprotected java.lang.Object createArrayTypeFromPropertyValue(java.lang.Class<?> c, java.lang.String s)
c
- Class
type to instantiates
- String
to parseObject
that is an array or nullCopyright © 2014. All Rights Reserved.