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