net.sf.sfac.utils
Class ReflectionUtils

java.lang.Object
  extended by net.sf.sfac.utils.ReflectionUtils

public abstract class ReflectionUtils
extends Object

Abstract builder for building a SimpleDatabase application.

Author:
Olivier Berlanger

Constructor Summary
ReflectionUtils()
           
 
Method Summary
static String getFieldName(Method setterOrGetter)
           
static Method getGetter(Class<?> baseClass, String fieldName, Class<?> fieldType)
           
static Method getGetter(Class<?> baseClass, String fieldName, Class<?> fieldType, boolean mandatory)
           
static Method getMethod(Class<?> enclosingClass, String prefix, String fieldName, String suffix, boolean mandatory, Class<?>... params)
           
static Method getMethod(Class<?> enclosingClass, String prefix, String fieldName, String suffix, Class<?>... params)
           
static Method getSetter(Class<?> enclosingClass, String fieldName, Class<?> fieldType)
           
static Method getSetter(Class<?> enclosingClass, String fieldName, Class<?> fieldType, boolean mandatory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionUtils

public ReflectionUtils()
Method Detail

getFieldName

public static String getFieldName(Method setterOrGetter)

getGetter

public static Method getGetter(Class<?> baseClass,
                               String fieldName,
                               Class<?> fieldType)

getGetter

public static Method getGetter(Class<?> baseClass,
                               String fieldName,
                               Class<?> fieldType,
                               boolean mandatory)

getSetter

public static Method getSetter(Class<?> enclosingClass,
                               String fieldName,
                               Class<?> fieldType)

getSetter

public static Method getSetter(Class<?> enclosingClass,
                               String fieldName,
                               Class<?> fieldType,
                               boolean mandatory)

getMethod

public static Method getMethod(Class<?> enclosingClass,
                               String prefix,
                               String fieldName,
                               String suffix,
                               Class<?>... params)

getMethod

public static Method getMethod(Class<?> enclosingClass,
                               String prefix,
                               String fieldName,
                               String suffix,
                               boolean mandatory,
                               Class<?>... params)


Copyright © 2012. All Rights Reserved.