Created
October 8, 2015 16:58
-
-
Save yupadhyay/5c856ec2752f8612cfe9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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