Created
November 24, 2014 06:22
-
-
Save yupadhyay/64220939aa7de648ed6d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
private String[] value2,value3; | |
private String value1; | |
@SuppressWarnings("unused") | |
@Activate | |
protected void activate(final Map<String, Object> config) { | |
//Read single value | |
this.value1 = PropertiesUtil.toString(config.get(VALUE1)); | |
//Read multivalue | |
this.value2=PropertiesUtil.toStringArray(config.get(VALUE2)); | |
this.value3=PropertiesUtil.toStringArray(config.get(VALUE3)); | |
//Then convert value 3 to Long. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment