Package groovy.beans

Interface PropertyReader

All Known Subinterfaces:
PropertyAccessor
All Known Implementing Classes:
DefaultPropertyAccessor, DefaultPropertyReader

public interface PropertyReader
Strategy for reading a named property from an object.
  • Method Summary

    Modifier and Type
    Method
    Description
    read(Object owner, String propertyName)
    Reads the named property from the supplied owner.
  • Method Details

    • read

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