Skip to content

consuming multiple OSGi service implementations of interface bundle

Notifications You must be signed in to change notification settings

shubhamgupta97/osgi-services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSGi Services

Multiple implementations of an interface consumed all at once!

All implementations and the interface are in separate bundles. Shape is the bundle containing the interface, Main is the consumer bundle. The other bundles are the implementations of Shape.

Here, Main consumes all the active services. This is done using filter in properties.

As a newbie to OSGi I had a tough time figuiring out how the consumer can get the services from a number of implementations of the same interface. Hence thought of sharing this code. Cheers!

About

consuming multiple OSGi service implementations of interface bundle

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages