Can someone please explain me how to configure OSGI DS to be a singleton? I use Equinox as OSGi container.
SCR component
<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="Simple Dictionary">
<implementation class="foo.bar.services.DictionaryImpl"/>
<service>
<provide interface="foo.bar.services.Dictionary"/>
</service>
</scr:component>
OSGI console output
osgi> services (objectClass=foo.bar.services*)
{foo.bar.services.Dictionary}={
component.name=Simple Dictionary,
component.id=0,
service.id=51,
service.bundleid=7,
service.scope=bundle
}
"Registered by bundle:" foo.bar.services_1.0.0.qualifier [7]
"No bundles using service."