Package edu.vt.middleware.ldap.props
Class LdapConfigPropertyInvoker
- java.lang.Object
-
- edu.vt.middleware.ldap.props.AbstractPropertyInvoker
-
- edu.vt.middleware.ldap.props.LdapConfigPropertyInvoker
-
public class LdapConfigPropertyInvoker extends AbstractPropertyInvoker
PropertyInvoker
stores setter methods for a class to make method invocation by property easier.- Version:
- $Revision: 1498 $ $Date: 2010-08-18 16:21:37 +0200 (Wed, 18 Aug 2010) $
- Author:
- Middleware Services
-
-
Field Summary
-
Fields inherited from class edu.vt.middleware.ldap.props.AbstractPropertyInvoker
clazz, logger, properties, PROPERTIES_CACHE
-
-
Constructor Summary
Constructors Constructor Description LdapConfigPropertyInvoker(java.lang.Class<?> c, java.lang.String propertiesDomain)
Creates a newPropertyInvoker
for the supplied class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class edu.vt.middleware.ldap.props.AbstractPropertyInvoker
createClass, getProperties, hasProperty, initialize, instantiateType, invokeMethod, setProperty
-
-
-
-
Method Detail
-
convertValue
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. If value cannot be converted it is returned as is.- Specified by:
convertValue
in classAbstractPropertyInvoker
- Parameters:
type
- of object to convert value intovalue
- to parse- Returns:
- object of the supplied type
-
createTypeFromPropertyValue
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.- Parameters:
c
-Class
type to instantiates
-String
to parse- Returns:
Object
of the supplied type or null
-
createArrayTypeFromPropertyValue
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.- Parameters:
c
-Class
type to instantiates
-String
to parse- Returns:
Object
that is an array or null
-
-