com.pholser.util.properties
Annotation Type BoundProperty


@Documented
@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface BoundProperty

Mark an interface method with this annotation to indicate that it should return the value associated with a given key from a property source, converted to the type indicated by the method's return type.

Author:
Paul Holser
See Also:
DefaultsTo, ValuesSeparatedBy, ParsedAs

Required Element Summary
 String value
          The property source key to associate with the marked method.
 
Optional Element Summary
 boolean suppressSubstitution
          Tells whether substitution should be suppressed when resolving this property.
 

Element Detail

value

public abstract String value
The property source key to associate with the marked method.

Returns:
a property key

suppressSubstitution

public abstract boolean suppressSubstitution

Tells whether substitution should be suppressed when resolving this property.

This would be useful if, for example, you expect the value of your property to be a regex.

Returns:
true if substitution should be suppressed
Default:
false


© Copyright 2009-2013 Paul R. Holser, Jr. All rights reserved. Licensed under The MIT License. pholser@alumni.rice.edu