Package groovy.util
Class Proxy
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.util.Proxy
- All Implemented Interfaces:
- GroovyObject
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.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioninvokeMethod(String name, Object args) Invokes the given method.iterator()voidsetAdaptee(Object adaptee) This method is for convenience.Methods inherited from class groovy.lang.GroovyObjectSupportgetMetaClass, setMetaClassMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface groovy.lang.GroovyObjectgetProperty, setProperty
- 
Constructor Details- 
Proxypublic Proxy()
 
- 
- 
Method Details- 
wrapThis method is for convenience. It allows to get around the need for defining dump ctors in subclasses. See unit tests for details.
- 
getAdaptee
- 
setAdaptee
- 
invokeMethodDescription copied from interface:GroovyObjectInvokes the given method.- Parameters:
- name- the name of the method to call
- args- the arguments to use for the method call
- Returns:
- the result of invoking the method
 
- 
iterator
 
-