Class ReflectionUtils

java.lang.Object
es.kukenan.smartfi.common.utils.ReflectionUtils

public class ReflectionUtils extends Object
Utility as a reflection facility.
  • Constructor Details

    • ReflectionUtils

      public ReflectionUtils()
  • Method Details

    • getProperty

      public static Object getProperty(Object object, String property)
      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

      private static Field getAccessibleField(Object object, String property)
      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.