Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yupadhyay
Created October 8, 2015 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save yupadhyay/5c856ec2752f8612cfe9 to your computer and use it in GitHub Desktop.
Save yupadhyay/5c856ec2752f8612cfe9 to your computer and use it in GitHub Desktop.
@Property(label="Select One Value",name="label", options={
@PropertyOption(name="title1",value="value1"),
@PropertyOption(name="title2",value="value2")
},value="defaultvalue", description="Some Description")
private static final String PROPERTY_SCHEDULER_DATASOURCE = "label";
private String label;
//And then
@Activate
protected void activate(final Map<String, Object> config) {
this.lebel = PropertiesUtil.toString(config.get("label"), "some_default_value");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment