[
https://issues.apache.org/jira/browse/FELIX-5403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15656475#comment-15656475
]
Dobias van Buuren commented on FELIX-5403:
------------------------------------------
Ok, just tried your patch with the additions. All seems to work fine at first
sight.
I had to patch the r8 release with your additions however, because the current
trunk version does not seem to work correctly with my app.
I got problems regarding DM not being able to invoke some of my injection
callback methods with the trunk version of DM. Since the r8 release does not
seem to have that problem, this is probably a bug in the current trunk.
I think the problem is with a certain service dependency construct I use to
match certain services that are NOT publishing some additional service
interface too. For that, I use the following service dependency declaration:
{code}
manager.createServiceDependency()
.setService(StoreService.class, "(!(objectClass=" +
ConsequenceStoreService.class.getName() + "))")
.setCallbacks("addStoreService", null, "removeStoreService",
"swapStoreService");
{code}
The above works with DM r8, but does not with the current trunk version.
When I change the code to the following, everything works just like before.
{code}
manager.createServiceDependency()
.setService(StoreService.class, "(&(objectClass=" +
StoreService.class.getName() + ")" + "(!(objectClass=" +
ConsequenceStoreService.class.getName() + ")))"
.setCallbacks("addStoreService", null, "removeStoreService",
"swapStoreService");
{code}
Note the unnecessary addition of the StoreService.class in the filter (because
the dependency is to track StoreService instances in the first place.
> Improve the Javadoc for org.apache.felix.dm.ComponentStateListener
> ------------------------------------------------------------------
>
> Key: FELIX-5403
> URL: https://issues.apache.org/jira/browse/FELIX-5403
> Project: Felix
> Issue Type: Improvement
> Components: Dependency Manager
> Affects Versions: org.apache.felix.dependencymanager-r8
> Reporter: Dobias van Buuren
> Assignee: Pierre De Rop
> Fix For: org.apache.felix.dependencymanager-r9
>
>
> The class level javadoc in org.apache.felix.dm.ComponentStateListener still
> mentiones the methods from the DM 3 version of the ComponentStateListener
> interface (starting, started, stopping and stopped).
> Those methods aren't available anymore in the DM 4 version.
> It would be nice if this gets corrected in a newer version, because it is not
> trivial what the alternatives in org.apache.felix.dm.ComponentState are.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)