Package groovy.beans

# Class DefaultPropertyWriter

java.lang.Object
groovy.beans.DefaultPropertyWriter

All Implemented Interfaces:
  `PropertyWriter`

public class DefaultPropertyWriter extends Object implements PropertyWriter
Default `PropertyWriter` implementation using Groovy property access.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final PropertyWriter`
  `INSTANCE`
  Shared property writer instance.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DefaultPropertyWriter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `write(Object owner, String propertyName, Object value)`
  Writes the named property on 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 PropertyWriter INSTANCE
    Shared property writer instance.

- ## Constructor Details

  - ### DefaultPropertyWriter

    public DefaultPropertyWriter()

- ## Method Details

  - ### write

    public void write(Object owner, String propertyName, Object value)
    Writes the named property on the supplied owner.
    Specified by:
      `write` in interface `PropertyWriter`
    Parameters:
      `owner` - the object that owns the property
      `propertyName` - the property name
      `value` - the value to assign