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.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Object |
getAdaptee()Returns the wrapped adaptee. |
|
public Object |
invokeMethod(String name, Object args)Invokes a proxy method or forwards the call to the adaptee. |
|
public Iterator |
iterator()Returns an iterator over the adaptee. |
|
public void |
setAdaptee(Object adaptee)Sets the wrapped adaptee. |
|
public Proxy |
wrap(Object adaptee)This method is for convenience. |
| Methods inherited from class | Name |
|---|---|
class GroovyObjectSupport |
getMetaClass, setMetaClass |
Returns the wrapped adaptee.
Invokes a proxy method or forwards the call to the adaptee.
name - the method nameargs - the invocation argumentsReturns an iterator over the adaptee.
Sets the wrapped adaptee.
adaptee - the adaptee to wrap