Skip to content

Instantly share code, notes, and snippets.

@yupadhyay
Created November 24, 2014 06:22
Show Gist options
  • Save yupadhyay/64220939aa7de648ed6d to your computer and use it in GitHub Desktop.
Save yupadhyay/64220939aa7de648ed6d to your computer and use it in GitHub Desktop.
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