Package groovy.util

Class Proxy

  • All Implemented Interfaces:

    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 Detail

      • Proxy

        public Proxy()
    • Method Detail

      • 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.
      • getAdaptee

        public Object getAdaptee()
      • setAdaptee

        public void setAdaptee​(Object adaptee)