Package org.apache.tools.ant.taskdefs
Class AugmentReference
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.AugmentReference
- All Implemented Interfaces:
- Cloneable,- TypeAdapter
Ant task to dynamically augment a previously declared reference.
- Since:
- Ant 1.8.1
- 
Field SummaryFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcheckProxyClass(Class<?> proxyClass) Check if the proxy class is compatible with this adapter - i.e.voidexecute()Overridden to restore the wrapper once it is no longer needed.getProxy()Returns the proxy object.voidSets the proxy object, whose methods are going to be invoked by ant.Methods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tools.ant.TypeAdaptergetProject, setProject
- 
Constructor Details- 
AugmentReferencepublic AugmentReference()
 
- 
- 
Method Details- 
checkProxyClassCheck 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:
- checkProxyClassin interface- TypeAdapter
- Parameters:
- proxyClass- the class to be checked.
 
- 
getProxyReturns the proxy object.- Specified by:
- getProxyin interface- TypeAdapter
- Returns:
- the target proxy object
 
- 
setProxySets 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:
- setProxyin interface- TypeAdapter
- Parameters:
- o- The target object. Must not be- null.
 
- 
execute
 
-