edu.vt.middleware.ldap.props
Class SimplePropertyInvoker

java.lang.Object
  extended by edu.vt.middleware.ldap.props.AbstractPropertyInvoker
      extended by edu.vt.middleware.ldap.props.SimplePropertyInvoker

public class SimplePropertyInvoker
extends AbstractPropertyInvoker

SimplePropertyInvoker stores setter methods for a class to make method invocation of simple properties easier.

Version:
$Revision: 1441 $ $Date: 2010-07-01 12:55:43 -0400 (Thu, 01 Jul 2010) $
Author:
Middleware Services

Field Summary
 
Fields inherited from class edu.vt.middleware.ldap.props.AbstractPropertyInvoker
clazz, logger, properties, PROPERTIES_CACHE
 
Constructor Summary
SimplePropertyInvoker(Class<?> c)
          Creates a new SimplePropertyInvoker for the supplied class.
 
Method Summary
protected  Object convertValue(Class<?> type, String value)
          This converts the supplied string value into an Object of the appropriate supplied type.
 
Methods inherited from class edu.vt.middleware.ldap.props.AbstractPropertyInvoker
createClass, getProperties, hasProperty, initialize, instantiateType, invokeMethod, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePropertyInvoker

public SimplePropertyInvoker(Class<?> c)
Creates a new SimplePropertyInvoker for the supplied class.

Parameters:
c - Class that has setter methods
Method Detail

convertValue

protected Object convertValue(Class<?> type,
                              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 class AbstractPropertyInvoker
Parameters:
type - of object to convert value into
value - to parse
Returns:
object of the supplied type


Copyright © 2003-2010 Virginia Tech. All Rights Reserved.