Package groovy.beans

Class DefaultPropertyReader

java.lang.Object
groovy.beans.DefaultPropertyReader
All Implemented Interfaces:
PropertyReader

public class DefaultPropertyReader extends Object implements PropertyReader
Default PropertyReader implementation using Groovy property access.
  • Field Details

    • INSTANCE

      public static final PropertyReader INSTANCE
      Shared property reader instance.
  • Constructor Details

    • DefaultPropertyReader

      public DefaultPropertyReader()
  • Method Details

    • read

      public Object read(Object owner, String propertyName)
      Reads the named property from the supplied owner.
      Specified by:
      read in interface PropertyReader
      Parameters:
      owner - the object that owns the property
      propertyName - the property name
      Returns:
      the property value