Package org.intermine.task
Class DynamicAttributeTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.intermine.task.DynamicAttributeTask
-
- Direct Known Subclasses:
ConverterTask
,DirectDataLoaderTask
,PostProcessorTask
public class DynamicAttributeTask extends org.apache.tools.ant.Task
An ant task that provides a method for setting attributes dynamically within a class. Typically a sub class of this task will have a handle to a class that does some work for it, but in order to make the class reusable, it's properties are factored out into either a config or a build file. The task subclass can use the configureDynamicAttributes method, along with some properties that have been set at runtime to initialize the helper/worker class.- Author:
- Peter Mclaren, Richard Smith
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.log4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description DynamicAttributeTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureDynamicAttributes(java.lang.Object bean)
Look at set methods on a target object and lookup values in project properties.-
Methods inherited from class org.apache.tools.ant.Task
execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
configureDynamicAttributes
public void configureDynamicAttributes(java.lang.Object bean)
Look at set methods on a target object and lookup values in project properties. If no value found property will not be set but no error will be thrown.- Parameters:
bean
- an object to search for setter methods
-
-