net.sf.javaprinciples
Class FieldUtils<T>

java.lang.Object
  extended by net.sf.javaprinciples.FieldUtils<T>

public class FieldUtils<T>
extends Object


Constructor Summary
FieldUtils()
           
 
Method Summary
 Field[] findFields(Object target)
           
static
<T> Field[]
findResourceFields(Object target)
           
 void inject(Object target)
           
static
<T> void
injectResources(Object target)
           
static void setAttribute(Object target, String fieldName, Object value)
          Set a value on a field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldUtils

public FieldUtils()
Method Detail

setAttribute

public static void setAttribute(Object target,
                                String fieldName,
                                Object value)
Set a value on a field.

Parameters:
target - The object that defines the field
fieldName - The name of the field to change
value - 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.