Proxy (groovy 2.4.6 API)
Date: 2016-02-18

Package: groovy.util

## [Java] Class Proxy

- groovy.util.Proxy

- Dynamic groovy proxy for another object. All method invocations get forwarded to actual object, unless the proxy overrides it. See groovy/util/ProxyTest.groovy for usage details.

  Authors:
    Troy Heninger
    Dierk Koenig

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `Object` | `getAdaptee()`
    `Object` | `invokeMethod(String name, Object args)`
    `Iterator` | `iterator()`
    `void` | `setAdaptee(Object adaptee)`
    `Proxy` | `wrap(Object adaptee)` This method is for convenience.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class GroovyObjectSupport` | `getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty`
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Method Detail

    - #### public Object getAdaptee()

    - #### public Object invokeMethod(String name, Object args)

    - #### public Iterator iterator()

    - #### public void setAdaptee(Object adaptee)

    - #### public Proxy wrap(Object adaptee)

      This method is for convenience. It allows to get around the need for defining dump ctors in subclasses. See unit tests for details.