felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre De Rop (JIRA)" <j...@apache.org>
Subject [jira] Created: (FELIX-992) Allow DM to inject service properties using a Map
Date Thu, 19 Mar 2009 09:55:52 GMT
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

Marcel, what do you think ?


This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message