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] [Commented] (FELIX-5177) Support injecting configuration proxies
Date Mon, 08 Feb 2016 14:40:39 GMT

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

Pierre De Rop commented on FELIX-5177:

Just committed in rv  1729180 a small fix in the ConfigurationDependencyImpl class: when the
a  configuration is lost, CM calls us with a null Dictionary.
So, since in this case we pass a null dictionary for callbacks that accept a Dictionary in
argument, then we should also pass a null configuration proxy to callbacks that take in argument
a configuration proxy type object.

> Support injecting configuration proxies
> ---------------------------------------
>                 Key: FELIX-5177
>                 URL: https://issues.apache.org/jira/browse/FELIX-5177
>             Project: Felix
>          Issue Type: Improvement
>          Components: Dependency Manager, Dependency Manager Annotations, Dependency Manager
Lambda, Dependency Manager Runtime
>            Reporter: J.W. Janssen
>            Assignee: Pierre De Rop
>             Fix For: 	org.apache.felix.dependencymanager-r7
>         Attachments: FELIX-5177.patch
> DM supports mandatory configurations, but does not allow anything other than a dictionary
to be passed to the callback. In other DI frameworks (like DS) it is possible to use type-safe
configurations and let those be injected instead of plain dictionaries.
> It would be great if DM also would support this, as it would remove lots of configuration
boiler plate code from our projects.

This message was sent by Atlassian JIRA

View raw message