Brooklyn

brooklyn.util.flags
[Java] Annotation Type SetFromFlag

java.lang.Object
  brooklyn.util.flags.SetFromFlag

@Retention(RetentionPolicy.RUNTIME)
public @interface SetFromFlag

Annotation to indicate that a variable may be set through the use of a named argument, looking for the name specified here or inferred from the annotated field/argument/object.

This is used to automate the processing where named arguments are passed in constructors and other methods, and the values of those named arguments should be transferred to other known fields/arguments/objects at runtime.

Fields on a class are typically set from values in a map with a call to FlagUtils.setFieldsFromFlags. That method (and related, in the same class) will attend to the arguments here.


Method Summary
 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.