Thanks David and Jens. I understand and have been successful using the heater example. Works great, thanks.
One question: Is there some indication somewhere of the available ui widgets associated with the various types? (Integer and String are understood, but are there widget for other types...e.g. Double/Float, and possibly even List/Collection/Map?
I assume that once Kura moves to DS version 1.3 (and associated metatype) that we will be able to use custom types for the ConfigurableComponents...e.g. as described in [1]. Is that a reasonable assumption? Also, I expect you know this...but Equinox
is moving to the Felix SCR impl (1.3 I believe) for Oxygen [2].
Scott
[1] http://njbartlett.name/2015/08/17/osgir6-declarative-services.html
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=501950
From: kura-dev-bounces@xxxxxxxxxxx [kura-dev-bounces@xxxxxxxxxxx] on behalf of Jens Reimann [jreimann@xxxxxxxxxx]
Sent: Monday, October 03, 2016 11:53 PM
To: Kura Developers mailing list
Subject: Re: [kura-dev] ConfigurableComponents
The most important things to remember here are:
* Your service must be registered with the OSGi service layer, just declaring the service is not enough
* You must also set the configuration policy to "required"
* The service must have a "service.pid"
* There must be a metatype descriptor of exactly that "service.pid" (see the example as a reference)
Leaving out any of those will cause the service to not be shown in the Web UI.
Also be aware of the fact that if you configure something wrong, so that the service gets unregistered with OSGi, then also the configuration UI will disappear, and you cannot undo that mistake.
Cheers
Jens