Package groovy.util
Class Proxy
- java.lang.Object
- 
- groovy.lang.GroovyObjectSupport
- 
- groovy.util.Proxy
 
 
- 
- All Implemented Interfaces:
- GroovyObject
 
 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.
- 
- 
Constructor SummaryConstructors Constructor Description Proxy()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetAdaptee()java.lang.ObjectinvokeMethod(java.lang.String name, java.lang.Object args)Invokes the given method.java.util.Iteratoriterator()voidsetAdaptee(java.lang.Object adaptee)Proxywrap(java.lang.Object adaptee)This method is for convenience.- 
Methods inherited from class groovy.lang.GroovyObjectSupportgetMetaClass, getProperty, setMetaClass, setProperty
 
- 
 
- 
- 
- 
Method Detail- 
wrappublic Proxy wrap(java.lang.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.
 - 
getAdapteepublic java.lang.Object getAdaptee() 
 - 
setAdapteepublic void setAdaptee(java.lang.Object adaptee) 
 - 
invokeMethodpublic java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)Description copied from interface:GroovyObjectInvokes the given method.- Specified by:
- invokeMethodin interface- GroovyObject
- Overrides:
- invokeMethodin class- GroovyObjectSupport
- 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
 
 - 
iteratorpublic java.util.Iterator iterator() 
 
- 
 
-