You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Marcel Offermans (JIRA)" <ji...@apache.org> on 2009/08/11 10:55:15 UTC
[jira] Closed: (FELIX-992) Allow DM to inject service properties
using a Map
[ https://issues.apache.org/jira/browse/FELIX-992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcel Offermans closed FELIX-992.
----------------------------------
Latest comments indicate the reporter agrees with the resolution, so I'm closing this issue.
> 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.1
> Environment: linux
> Reporter: Pierre De Rop
> Assignee: Marcel Offermans
> Priority: Minor
> Attachments: ServiceDependency.java
>
>
> 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.