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] [Comment Edited] (FELIX-2706) Support callback delegation for Configuration Dependecies
Date Sat, 18 Oct 2014 20:15:33 GMT

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

Pierre De Rop edited comment on FELIX-2706 at 10/18/14 8:14 PM:
----------------------------------------------------------------

Committed a simple patch for this old but useful issue in revision 1632835.
Added a testcase in [1]
Also added a sample code in [2]

[1] http://svn.apache.org/viewvc/felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dependencymanager.itest/src/org/apache/felix/dm/itest/ConfigurationDependencyTest.java

[2] http://svn.apache.org/viewvc/felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dependencymanager.samples/src/org/apache/felix/dependencymanager/samples/compositefactory/


was (Author: pderop):
Committed a simple patch for issue in revision 1632835.
Added a testcase in [1]
Also added a sample code in [2]

[1] http://svn.apache.org/viewvc/felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dependencymanager.itest/src/org/apache/felix/dm/itest/ConfigurationDependencyTest.java

[2] http://svn.apache.org/viewvc/felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dependencymanager.samples/src/org/apache/felix/dependencymanager/samples/compositefactory/

> Support callback delegation for Configuration Dependecies
> ---------------------------------------------------------
>
>                 Key: FELIX-2706
>                 URL: https://issues.apache.org/jira/browse/FELIX-2706
>             Project: Felix
>          Issue Type: Wish
>          Components: Dependency Manager
>            Reporter: Bram de Kruijff
>            Assignee: Pierre De Rop
>             Fix For: dependencymanager-4.0.0
>
>
> At the moment it is possible to add a (by definition required) ConfigurationDependency
to a Component. DM manages the ManagedService registration and relaxes the contraint of having
to implement the interface on your component implementation class, but you do still have to
implement the updated(Dictionary dict) callback on it as it is not possible to delegate this
to a callback handler. I would like to be able to have a way to delegate this to a callback
handler for two main reasons:
> 1) Remove the requirement for implementing the updated(Dictionary dict) signiature in
my business logic. I consider dealing with this delivery mechanism OSGi plumbing that should
not be part of my business logic.
> 2) Allow a factory object to recieve the configuration before the actual factory method
is invoked. This allows the factory to instantiate and configure the eventual service implementation
instance based on configuration data.
> For more detail see the thread on the user list : http://www.mail-archive.com/users@felix.apache.org/msg09015.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message