You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2009/06/16 20:45:07 UTC
[jira] Created: (FELIX-1244) Add support for
ServiceEvent.MODIFIED_ENDMATCH
Add support for ServiceEvent.MODIFIED_ENDMATCH
----------------------------------------------
Key: FELIX-1244
URL: https://issues.apache.org/jira/browse/FELIX-1244
Project: Felix
Issue Type: New Feature
Components: Framework, Specification compliance
Affects Versions: felix-1.8.0
Reporter: Richard S. Hall
Fix For: felix-2.0.0
The OSGi R4.2 specification introduces a new ServiceEvent type MODIFIED_ENDMATCH. It allows service listeners to be notified about when a previously matching service stops matching the listener's service filter due to the registering bundle changing the service properties. This is necessary for situations, like the ServiceTracker, where you want to stop tracking a service when it no longer matches a listener's filter, but in the current situation the listener would not be notified with a MODIFIED event if the new properties no longer matched the listener's filter.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (FELIX-1244) Add support for
ServiceEvent.MODIFIED_ENDMATCH
Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard S. Hall closed FELIX-1244.
----------------------------------
Resolution: Fixed
I committed a patch for this.
> Add support for ServiceEvent.MODIFIED_ENDMATCH
> ----------------------------------------------
>
> Key: FELIX-1244
> URL: https://issues.apache.org/jira/browse/FELIX-1244
> Project: Felix
> Issue Type: New Feature
> Components: Framework, Specification compliance
> Affects Versions: felix-1.8.0
> Reporter: Richard S. Hall
> Assignee: Richard S. Hall
> Fix For: felix-2.0.0
>
>
> The OSGi R4.2 specification introduces a new ServiceEvent type MODIFIED_ENDMATCH. It allows service listeners to be notified about when a previously matching service stops matching the listener's service filter due to the registering bundle changing the service properties. This is necessary for situations, like the ServiceTracker, where you want to stop tracking a service when it no longer matches a listener's filter, but in the current situation the listener would not be notified with a MODIFIED event if the new properties no longer matched the listener's filter.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (FELIX-1244) Add support for
ServiceEvent.MODIFIED_ENDMATCH
Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard S. Hall reopened FELIX-1244:
------------------------------------
This solution is incorrectly holding onto ServiceRegistration objects since it doesn't watch for unregistrations. We should probably simplify this and just do double evaluations for MODIFIED events.
> Add support for ServiceEvent.MODIFIED_ENDMATCH
> ----------------------------------------------
>
> Key: FELIX-1244
> URL: https://issues.apache.org/jira/browse/FELIX-1244
> Project: Felix
> Issue Type: New Feature
> Components: Framework, Specification compliance
> Affects Versions: felix-1.8.0
> Reporter: Richard S. Hall
> Assignee: Richard S. Hall
> Fix For: felix-2.0.0
>
>
> The OSGi R4.2 specification introduces a new ServiceEvent type MODIFIED_ENDMATCH. It allows service listeners to be notified about when a previously matching service stops matching the listener's service filter due to the registering bundle changing the service properties. This is necessary for situations, like the ServiceTracker, where you want to stop tracking a service when it no longer matches a listener's filter, but in the current situation the listener would not be notified with a MODIFIED event if the new properties no longer matched the listener's filter.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (FELIX-1244) Add support for
ServiceEvent.MODIFIED_ENDMATCH
Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard S. Hall reassigned FELIX-1244:
--------------------------------------
Assignee: Richard S. Hall
> Add support for ServiceEvent.MODIFIED_ENDMATCH
> ----------------------------------------------
>
> Key: FELIX-1244
> URL: https://issues.apache.org/jira/browse/FELIX-1244
> Project: Felix
> Issue Type: New Feature
> Components: Framework, Specification compliance
> Affects Versions: felix-1.8.0
> Reporter: Richard S. Hall
> Assignee: Richard S. Hall
> Fix For: felix-2.0.0
>
>
> The OSGi R4.2 specification introduces a new ServiceEvent type MODIFIED_ENDMATCH. It allows service listeners to be notified about when a previously matching service stops matching the listener's service filter due to the registering bundle changing the service properties. This is necessary for situations, like the ServiceTracker, where you want to stop tracking a service when it no longer matches a listener's filter, but in the current situation the listener would not be notified with a MODIFIED event if the new properties no longer matched the listener's filter.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (FELIX-1244) Add support for
ServiceEvent.MODIFIED_ENDMATCH
Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard S. Hall closed FELIX-1244.
----------------------------------
Resolution: Fixed
Simplified the implementation by performing double evaluations of the filter in cases of a miss on MODIFIED. Since MODIFIED events aren't too common, I don't think this will be too big of a performance penalty.
> Add support for ServiceEvent.MODIFIED_ENDMATCH
> ----------------------------------------------
>
> Key: FELIX-1244
> URL: https://issues.apache.org/jira/browse/FELIX-1244
> Project: Felix
> Issue Type: New Feature
> Components: Framework, Specification compliance
> Affects Versions: felix-1.8.0
> Reporter: Richard S. Hall
> Assignee: Richard S. Hall
> Fix For: felix-2.0.0
>
>
> The OSGi R4.2 specification introduces a new ServiceEvent type MODIFIED_ENDMATCH. It allows service listeners to be notified about when a previously matching service stops matching the listener's service filter due to the registering bundle changing the service properties. This is necessary for situations, like the ServiceTracker, where you want to stop tracking a service when it no longer matches a listener's filter, but in the current situation the listener would not be notified with a MODIFIED event if the new properties no longer matched the listener's filter.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.