Package es.kukenan.smartfi.common.utils
Class ReflectionUtils
java.lang.Object
es.kukenan.smartfi.common.utils.ReflectionUtils
Utility as a reflection facility.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static FieldgetAccessibleField(Object object, String property) Method of Field class sets the accessible flag true for this reflected object.static ObjectgetProperty(Object object, String property) Method to get property.
-
Constructor Details
-
ReflectionUtils
public ReflectionUtils()
-
-
Method Details
-
getProperty
Method to get property.- Parameters:
object- Object that contains the field to access.property- property to access.- Returns:
- Object with access granted to properties.
- Throws:
NullPointerException- when property is not found.
-
getAccessibleField
Method of Field class sets the accessible flag true for this reflected object.- Parameters:
object- Object that contains the field to access.property- Property to access.- Returns:
- field with access granted.
- Throws:
NullPointerException- when property is not found.
-