net.sf.beanlib.utils
Class DebugUtils

java.lang.Object
  extended by net.sf.beanlib.utils.DebugUtils

public class DebugUtils
extends Object

Debug Utilities.

Author:
Joe D. Velopar

Field Summary
static DebugUtils inst
           
 
Constructor Summary
private DebugUtils()
           
 
Method Summary
 Object getFieldValue(Class c, String declaredFieldName, Object target)
          Returns the value of a declared field regardless of the privacy modifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inst

public static final DebugUtils inst
Constructor Detail

DebugUtils

private DebugUtils()
Method Detail

getFieldValue

public Object getFieldValue(Class c,
                            String declaredFieldName,
                            Object target)
Returns the value of a declared field regardless of the privacy modifier. This breaks encapsulation, so please use it only for debugging purposes.