User Tools

Site Tools


typed_config_value_for_declarative_service_component

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"]

Thanx to Lukasz for this great tip.

typed_config_value_for_declarative_service_component.txt · Last modified: 2016/02/17 13:25 by mihael