felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Offermans (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-992) Allow DM to inject service properties using a Map
Date Thu, 19 Mar 2009 18:00:50 GMT

    [ https://issues.apache.org/jira/browse/FELIX-992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12683545#action_12683545
] 

Marcel Offermans commented on FELIX-992:
----------------------------------------

That is definitely a method that makes sense to me. Thanks for the contribution, I'll merge
it asap!

> 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
>         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.


Mime
View raw message