org.powertac.common.config
Annotation Type ConfigurableValue


@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
public @interface ConfigurableValue

Annotation for configuring a property of some instance.

Author:
John Collins

Required Element Summary
 String valueType
          Name of value type - must be one of String, Integer, Long, Double, or List
 
Optional Element Summary
 String constraintExpression
          Constraint expression
 String description
          User-oriented description
 String getter
          Name of method that retrieves the default value for this property.
 String name
          Name for this property.
 boolean publish
          True if value must be published to brokers
 

Element Detail

valueType

public abstract String valueType
Name of value type - must be one of String, Integer, Long, Double, or List

name

public abstract String name
Name for this property. If not given, it's extracted from the method name, by stripping off a prefix of 'set' or 'with' and decapitalizing the remaining substring.

Default:
""

getter

public abstract String getter
Name of method that retrieves the default value for this property. If not given, then the property name is capitalized and prefixed with 'get'

Default:
""

description

public abstract String description
User-oriented description

Default:
"undocumented"

constraintExpression

public abstract String constraintExpression
Constraint expression

Default:
""

publish

public abstract boolean publish
True if value must be published to brokers

Default:
false


Copyright © 2012. All Rights Reserved.