com.atlassian.bamboo.ant.task.property
Class AbstractSingleValueTaskPropertyConfigurator<T>
java.lang.Object
com.atlassian.bamboo.ant.task.property.AbstractPropertyManipulator
com.atlassian.bamboo.ant.task.property.AbstractSingleValueTaskPropertyConfigurator<T>
- All Implemented Interfaces:
- AntPropertyManipulator, AntTaskPropertyConfigurator<T>
- Direct Known Subclasses:
- BooleanTaskPropertyConfigurator, ByteTaskPropertyConfigurator, CharacterTaskPropertyConfigurator, DoubleTaskPropertyConfigurator, FileTaskPropertyConfigurator, FloatTaskPropertyConfigurator, IntegerTaskPropertyConfigurator, LongTaskPropertyConfigurator, ShortTaskPropertyConfigurator, StringTaskPropertyConfigurator
public abstract class AbstractSingleValueTaskPropertyConfigurator<T>
- extends AbstractPropertyManipulator
- implements AntTaskPropertyConfigurator<T>
Abstract configurator for simple properties with only one value corresponding to the property name.
- Since:
- 3.4
Method Summary |
T |
fromConfig(java.lang.Class<? extends T> propertyType,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> values,
TaskContext taskContext)
Parse property value from configuration string. |
protected abstract T |
fromConfig(java.lang.String name,
java.lang.String value,
TaskContext context)
|
void |
fromConfig(T propertyObject,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> values,
TaskContext taskContext)
Populate existing property object with values from configuration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSingleValueTaskPropertyConfigurator
protected AbstractSingleValueTaskPropertyConfigurator(java.lang.Class<?> firstSupported,
java.lang.Class<?>... restSupported)
fromConfig
public T fromConfig(java.lang.Class<? extends T> propertyType,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> values,
TaskContext taskContext)
- Description copied from interface:
AntTaskPropertyConfigurator
- Parse property value from configuration string.
- Specified by:
fromConfig
in interface AntTaskPropertyConfigurator<T>
- Parameters:
propertyType
- property typename
- property namevalues
- relevant property values from configurationtaskContext
- current task context
- Returns:
- property value ready to inject into the task bean
fromConfig
public void fromConfig(T propertyObject,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> values,
TaskContext taskContext)
- Description copied from interface:
AntTaskPropertyConfigurator
- Populate existing property object with values from configuration.
- Specified by:
fromConfig
in interface AntTaskPropertyConfigurator<T>
- Parameters:
propertyObject
- property to populatename
- property namevalues
- relevant property values from configurationtaskContext
- current task context
fromConfig
protected abstract T fromConfig(java.lang.String name,
java.lang.String value,
TaskContext context)
Copyright © 2012 Atlassian. All Rights Reserved.