net.sf.javaprinciples
Class FieldUtils<T>
java.lang.Object
net.sf.javaprinciples.FieldUtils<T>
public class FieldUtils<T>
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FieldUtils
public FieldUtils()
setAttribute
public static void setAttribute(Object target,
String fieldName,
Object value)
- Set a value on a field.
- Parameters:
target - The object that defines the fieldfieldName - The name of the field to changevalue - The value to be set
findResourceFields
public static <T> Field[] findResourceFields(Object target)
findFields
public Field[] findFields(Object target)
injectResources
public static <T> void injectResources(Object target)
inject
public void inject(Object target)
Copyright © 2013. All Rights Reserved.