Class FieldValueHelper
java.lang.Object
org.glassfish.pfl.basic.reflection.FieldValueHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetFieldValue(Object obj, Field field) Returns the value of a field in an object.
-
Constructor Details
-
FieldValueHelper
public FieldValueHelper()
-
-
Method Details
-
getFieldValue
Returns the value of a field in an object.- Parameters:
obj- the object holding the fieldfield- the field whose value is to be returned.- Throws:
IllegalAccessException- if the field cannot directly be accessed.
-