Allow DM to inject service properties using a Map
-------------------------------------------------
Key: FELIX-992
URL: https://issues.apache.org/jira/browse/FELIX-992
Project: Felix
Issue Type: Improvement
Components: Dependency Manager
Affects Versions: dependencymanager-2.0.0
Environment: linux
Reporter: Pierre De Rop
Priority: Minor
We would like to improve DependencyManager in the following way:
Currently, when injecting dependencies with callbacks, DM searches for method
signatures in this order:
1. ServiceReference, TheService
2. ServiceReference, Object
3. ServiceReference
4. TheService
5. Object
6. (void)
I propose to add the following signature, which provides service properties
wrapped behing a basic Map:
7. (Map, TheService)
The purpose of this modification is to be able to inject service properties
without coupling my POJOs
with the OSGi API (that is: ServiceReference class, and
ServiceReference.getProperty method).
I have attached to this issue a proposed patch, which concerns the
ServiceDependency.java file.
Marcel, what do you think ?
/pierre
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.