|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.util.FieldUtils
public final class FieldUtils
Offers static methods for directly manipulating static fields.
Method Summary | |
---|---|
static String |
getAccessorName(String fieldName,
Class type)
|
static Field |
getField(Class clazz,
String fieldName)
Attempts to locate the specified field on the class. |
static Object |
getFieldValue(Object bean,
String fieldName)
Returns the value of a (nested) field on a bean. |
static String |
getMutatorName(String fieldName)
|
static Object |
getProtectedFieldValue(String protectedField,
Object object)
|
static void |
setProtectedFieldValue(String protectedField,
Object object,
Object newValue)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String getAccessorName(String fieldName, Class type)
public static Field getField(Class clazz, String fieldName) throws IllegalStateException
clazz
- the class definition containing the fieldfieldName
- the name of the field to locate
IllegalStateException
- if field could not be foundpublic static Object getFieldValue(Object bean, String fieldName) throws IllegalAccessException
bean
- the objectfieldName
- the field name, with "." separating nested properties
IllegalAccessException
public static String getMutatorName(String fieldName)
public static Object getProtectedFieldValue(String protectedField, Object object)
public static void setProtectedFieldValue(String protectedField, Object object, Object newValue)
|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |