Thank you for this fast answer.

inspect cap service

with grep did the trick!

------ Originalnachricht ------
Von: "Neil Bartlett" <njbartl...@gmail.com>
An: "users" <users@felix.apache.org>; "Thomas Driessen" <thomas.driessen...@gmail.com>
Gesendet: 10.01.2018 12:46:38
Betreff: Re: Adding service programmatically so SCR sees it

The SCR commands are only aware of Components, as defined by the DS
specification.

When you register a service using BundleContext#registerService, what you have created is not a Component, but only an entry in the service registry.
Not all services are component and, incidentally, not all components
provide services.

The command you are looking for is "inspect". You can use this to list the
provided services of bundle id N by typing:

   inspect cap service N

Where 'cap' is short for 'capability', i.e. provided rather than consumed. If you omit the bundle id then it will list all services of all bundles...
there will be a lot.

Neil

On Wed, Jan 10, 2018 at 11:41 AM, Thomas Driessen <
thomas.driessen...@gmail.com> wrote:

Hi,

I had to write my own extender and am adding services via

bundleContext.registerService(...)

When I type "list" into gogo shell, these services are not listed.
As the "list" command is provided by SCR I guess that SCR must be made
aware of my service in order to list it.

Is there a way to make SCR aware of services that I registered
programmatically?

If not, are there other commands to get a list of registered services?

Kind regards,
Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org

Reply via email to