Groovy 2.2.1

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 in subclasses. See unit tests for details.


 

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