Overview | Package | Class | Deprecated | Index | Help
| Groovy 1.7.10
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## groovy.util
[Java] Class Proxy

    java.lang.Object
      groovy.lang.GroovyObjectSupport
          groovy.util.Proxy

    public class Proxy
    extends GroovyObjectSupport

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

Method Summary
`Object` | `getAdaptee()`
`Object` | `invokeMethod(String name, Object args)`
`Iterator` | `iterator()`
`void` | `setAdaptee(Object adaptee)`
`Proxy` | `wrap(Object adaptee)` This method is for convenience.

Methods inherited from class GroovyObjectSupport
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty

Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll

Method Detail

### getAdaptee

    public Object getAdaptee()

### invokeMethod

    public Object invokeMethod(String name, Object args)

### iterator

    public Iterator iterator()

### setAdaptee

    public void setAdaptee(Object adaptee)

### wrap

    public Proxy wrap(Object adaptee)

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

Copyright © 2003-2010 The Codehaus. All rights reserved.