Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kura-dev] ConfigurableComponents

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

On Mon, Oct 3, 2016 at 9:09 PM, Woodard, David <david.woodard@xxxxxxxxxxxx> wrote:
Hi Scott,

Yes, that is one of the primary reasons for the ConfigurableComponent interface. Most of the examples in the Kura repo do exactly what you describe. Probably the simplest is the heater demo [1].


Thanks,
--Dave

On Oct 3, 2016, at 14:01, Lewis, ScottX <scottx.lewis@xxxxxxxxx> wrote:

Howdy,

Are there Kura examples that show the use of the org.eclipse.kura.configuration.ConfigurableComponent?

Is it possible to plugin to the kura web interface using ConfigurableComponent?  i.e.  so that we can create/add a service that is a ConfigurableComponent, and the ui will appear in web Services section...provide a UI, and allow the configuration of our service similar to ClockService, MqttDataTransport service, PositionService, etc?   If that's a possibility, any examples of doing that?

Thanksinadvance,

Scott

_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev


_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev



--
Jens Reimann
Senior Software Engineer / EMEA ENG Middleware
Werner-von-Siemens-Ring 14
85630 Grasbrunn
Germany
phone: +49 89 2050 71286
_____________________________________________________________________________

Red Hat GmbH, www.de.redhat.com,
Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham, Michael O'Neill

Back to the top