|Help with a Design Pattern: Service interfaces separation from implementation [message #97997]
||Sun, 23 September 2007 09:09
Originally posted by: martin.tomcat.org|
I guess that my question is a generic OSGi question, but since we are using
Equinox I post the question here.
A common design situation (at least for us) is that several services
implements the same service interface.
Bundle A has a service that implements IMyServiceInterface
Bundle B has also starts a service that implements IMyServiceInterface
We can not have one bundle to start all services of type
IMyServiceInterface, so that is not a slution.
In a prototype we created the IMyServerInterface wasa defined in a separate
bundle. But this gives us MANY
bundles that simply exports a single interface class. The option we had was
to have one big bundle that exposes
all service interfaces.
Which approach is the best? (other options?)
Any advice / comments appreciated
Powered by FUDForum
. Page generated in 0.01835 seconds