Skip to main content


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: 87
Registered: July 2009
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: 60
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: Fri Apr 26 02:17:43 GMT 2024

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

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

Back to the top