Differences

This shows you the differences between two versions of the page.

Link to this comparison view

typed_config_value_for_declarative_service_component [2016/02/17 14:25]
typed_config_value_for_declarative_service_component [2021/04/05 11:23] (current)
Line 1: Line 1:
 +====== Typed Config Value for Declarative Service Component ======
  
 +DS components can be configured via property files with the help of the ConfigAdmin OSGi service. These config values are of type String by default but they can be configured to be of the following types.
 +
 +  * T = String
 +  * I = Integer
 +  * L = Long
 +  * F = Float
 +  * D = Double
 +  * X = Byte
 +  * S = Short
 +  * C = Character
 +  * B = Boolean
 +
 +Small letters represents the primitive type version.
 +
 +The config value for an integer array would look like this:
 +
 +  value=i["1", "2", "3"]
 +
 +<note>Thanx to Lukasz for [[http://dywicki.pl/2015/02/apache-felix-configuration-admin-with-array-values/ | this]] great tip.</note>
 +
 +{{tag>osgi}}