Skip to content

Conversation

@glimmerveen
Copy link
Contributor

@glimmerveen glimmerveen commented Apr 21, 2020

This PR contains the patch already attached to FELIX-6161, but now applied on the current state of the felix-dev repository.

…on filtering done on the callbacks from the service registry
Copy link
Member

@tjwatson tjwatson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some requested changes. I also would like to see some tests that verify that the listener hooks now have the expected information.

@glimmerveen
Copy link
Contributor Author

I have some requested changes. I also would like to see some tests that verify that the listener hooks now have the expected information.

Thanks for your feedback, I will also work on adding some tests to verify the behaviour.

@djencks
Copy link
Contributor

djencks commented Apr 21, 2020 via email

…rs, specifically: target filter is visible to ListenerHook, and multiple references to same service from a single bundle use a single ServiceListener.
@glimmerveen
Copy link
Contributor Author

I have updated the PR to include an integration test as well that validates two aspects of the use of ServiceListener discussed:

  1. Target filter properties visible to ListenerHook
  2. If the same service is referenced multiple times from the same bundle, only a single ServiceListener is opened and maintained.

Copy link
Member

@tjwatson tjwatson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we are making good progress. Just a few more suggestions. I also need to run this through the tests in OpenLiberty. I ran the late version of the PR through an OpenLiberty build and it had many test failures that I hope were caused by the early removal of the listener.

…ncorrect filter was specified

Extended test to validate if other component with a reference to the same interface, but with other target filter does open a new ServiceListener
Cleanup of unused code/imports
Copy link
Member

@tjwatson tjwatson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks for the persistent work on this Arnoud.

Copy link
Contributor

@cziegeler cziegeler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, thanks

@tjwatson tjwatson merged commit 4102a86 into apache:master Apr 24, 2020
@glimmerveen glimmerveen deleted the PISTE-6161 branch April 24, 2020 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants