Class AugmentReference

All Implemented Interfaces:
Cloneable, TypeAdapter

public class AugmentReference extends Task implements TypeAdapter
Ant task to dynamically augment a previously declared reference.
Ant 1.8.1
  • Constructor Details

    • AugmentReference

      public AugmentReference()
  • Method Details

    • checkProxyClass

      public void checkProxyClass(Class<?> proxyClass)
      Check if the proxy class is compatible with this adapter - i.e. the adapter will be able to adapt instances of the give class.
      Specified by:
      checkProxyClass in interface TypeAdapter
      proxyClass - the class to be checked.
    • getProxy

      public Object getProxy()
      Returns the proxy object.
      Specified by:
      getProxy in interface TypeAdapter
      the target proxy object
    • setProxy

      public void setProxy(Object o)
      Sets the proxy object, whose methods are going to be invoked by ant. A proxy object is normally the object defined by a <typedef/> task that is adapted by the "adapter" attribute.
      Specified by:
      setProxy in interface TypeAdapter
      o - The target object. Must not be null.
    • execute

      public void execute()
      Overridden to restore the wrapper once it is no longer needed.
      execute in class Task
      Ant 1.8.3