Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Declarative Services re-use implementation class
Declarative Services re-use implementation class [message #991640] Wed, 19 December 2012 22:35 Go to next message
Johan Van Noten is currently offline Johan Van NotenFriend
Messages: 28
Registered: July 2009
Junior Member
Today we were reviewing a project that extensively uses declarative services.
We noticed that several component definitions were pointing to the same implementation class.

For instance:
* BundleA defines and exports a class AImpl with interface A.
* BundleB1
- imports AImpl's package
- defines a component C1 with implementation class AImpl and registers service A.
* BundleB2
- imports AImpl's package
- defines a component C2 with implementation class AImpl and registers service A.

Other bundles select the desired services by filtering on the registration properties of A from B1 and B2.

Question:
Re-using this same implementation class seemed odd to us.
Is there any real objection against using the same implementation class for multiple components?

The spec doesn't say anything about it afaik.
Does the Equinox implementation have any issues with it?

Thanks,
Johan

[Updated on: Wed, 19 December 2012 22:36]

Report message to a moderator

Re: Declarative Services re-use implementation class [message #991903 is a reply to message #991640] Thu, 20 December 2012 13:01 Go to previous message
BJ Hargrave is currently offline BJ HargraveFriend
Messages: 55
Registered: July 2009
Member
From a spec point of view, there is no issue with using the same impl class for multiple component descriptions. The Equinox DS impl needs to deal with this. If it does not, then please file a bug.
Previous Topic:Building from source?
Next Topic:Debugging Declarative Services resolution
Goto Forum:
  


Current Time: Mon Dec 22 00:02:27 GMT 2014

Powered by FUDForum. Page generated in 0.08495 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software