org.shiftone.arbor
Class IntrospectionUtil

java.lang.Object
  extended byorg.shiftone.arbor.IntrospectionUtil

class IntrospectionUtil
extends java.lang.Object

Class IntrospectionUtil

Author:
Jeff Drost

Field Summary
static org.apache.log4j.Logger LOG
           
 
Constructor Summary
(package private) IntrospectionUtil()
           
 
Method Summary
static java.lang.Object convert(java.lang.String text, java.lang.Class targetType)
          Method convert
static java.lang.reflect.Method getMethod(java.lang.Class klass, java.lang.String methodName, int paramCount)
          Method finds a method of the provided name with the provided number of parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.log4j.Logger LOG
Constructor Detail

IntrospectionUtil

IntrospectionUtil()
Method Detail

getMethod

public static java.lang.reflect.Method getMethod(java.lang.Class klass,
                                                 java.lang.String methodName,
                                                 int paramCount)
                                          throws java.lang.NoSuchMethodException
Method finds a method of the provided name with the provided number of parameters. Note that this method does not take the method types. It is possible for a class to have more than one method with the same name and parameter count.

Parameters:
klass -
methodName -
paramCount -
Returns:
Throws:
java.lang.NoSuchMethodException

convert

public static java.lang.Object convert(java.lang.String text,
                                       java.lang.Class targetType)
                                throws java.text.ParseException
Method convert

Parameters:
text -
targetType -
Returns:
Throws:
java.text.ParseException