| Modifier and Type | Field and Description |
|---|---|
| private Object | proxy
Object to act as a proxy for. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | checkProxyClass(Class<?>
the class to check. proxyClass)Implements org. |
| public static void | checkTaskClass(final Class<?>
Class to test for suitability.
Must not be taskClass, final Project null.Project to log warnings/errors to.
Must not be project)null.Checks whether or not a class is suitable to be adapted by TaskAdapter. |
| public void | |
| public Object | Returns: the target proxy object.Implements org. |
| public void | setProxy(Object
The target object. Must not be o)null.Implements org. |
| proxy | back to summary |
|---|---|
| private Object proxy Object to act as a proxy for. | |
| TaskAdapter | back to summary |
|---|---|
| public TaskAdapter() No-arg constructor for reflection. | |
| TaskAdapter | back to summary |
|---|---|
| public TaskAdapter(Object proxy) Constructor for given proxy. So you could write easier code myTaskContainer.addTask(new TaskAdapter(myProxy));
| |
| checkProxyClass | back to summary |
|---|---|
| public void checkProxyClass(Class<?> proxyClass) Implements org. Check if the proxy class is a valid class to use with this adapter. The class must have a public no-arg "execute()" method.
| |
| checkTaskClass | back to summary |
|---|---|
| public static void checkTaskClass(final Class<?> taskClass, final Project project) Checks whether or not a class is suitable to be adapted by TaskAdapter. If the class is of type Dispatchable, the check is not performed because the method that will be executed will be determined only at runtime of the actual task and not during parse time. This only checks conditions which are additionally required for tasks adapted by TaskAdapter. Thus, this method should be called by Project.checkTaskClass. Throws a BuildException and logs as Project.MSG_ERR for conditions that will cause the task execution to fail. Logs other suspicious conditions with Project.MSG_WARN.
| |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Executes the proxied task.
| |
| getProxy | back to summary |
|---|---|
| public Object getProxy() Implements org. Returns the target object being proxied.
| |
| setProxy | back to summary |
|---|---|
| public void setProxy(Object o) Implements org. Sets the target object to proxy for.
| |