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 Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final PropertyReader`
  `INSTANCE`
  Shared property reader instance.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DefaultPropertyReader()`

- ## Method Summary

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

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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