com.atlassian.bamboo.ant.task.property
Interface AntTaskPropertyConfigurator<T>

All Superinterfaces:
AntPropertyManipulator
All Known Implementing Classes:
AbstractBeanTaskPropertyConfigurator, AbstractSingleValueTaskPropertyConfigurator, BooleanTaskPropertyConfigurator, ByteTaskPropertyConfigurator, CharacterTaskPropertyConfigurator, DoubleTaskPropertyConfigurator, FileTaskPropertyConfigurator, FloatTaskPropertyConfigurator, GenericBeanTaskPropertyConfigurator, IntegerTaskPropertyConfigurator, LongTaskPropertyConfigurator, ShortTaskPropertyConfigurator, StringTaskPropertyConfigurator

public interface AntTaskPropertyConfigurator<T>
extends AntPropertyManipulator

Configures Ant task with properties from Bamboo task configuration.

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.
 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 interface com.atlassian.bamboo.ant.task.property.AntPropertyManipulator
supports
 

Method Detail

fromConfig

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.

Parameters:
propertyType - property type
name - property name
values - relevant property values from configuration
taskContext - current task context
Returns:
property value ready to inject into the task bean

fromConfig

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.

Parameters:
propertyObject - property to populate
name - property name
values - relevant property values from configuration
taskContext - current task context


Copyright © 2012 Atlassian. All Rights Reserved.