Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Producer Listener support refactored for code reuse #448

Merged
merged 2 commits into from
Feb 6, 2020

Conversation

Sunjeet
Copy link
Contributor

@Sunjeet Sunjeet commented Jan 28, 2020

For reuse in abstractions that compose a producer (eg. transformer).

Note the following breaking changes:
final class ListenerSupport -> final class ProducerListenerSupport extends ListenerSupport
public interface HollowProducerEventListener -> public interface HollowProducerEventListener extends EventListener

@Sunjeet Sunjeet requested review from a user and akhaku January 28, 2020 19:15
ListenerSupport(ListenerSupport that) {
eventListeners = new CopyOnWriteArrayList<>(that.eventListeners);
ProducerListenerSupport(ProducerListenerSupport that) {
super();
Copy link
Contributor

Choose a reason for hiding this comment

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

did you mean to pass in that to the super call here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, thanks for that

ListenerSupport() {
eventListeners = new CopyOnWriteArrayList<>();
ProducerListenerSupport() {
super();
Copy link
Contributor

Choose a reason for hiding this comment

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

Super minor, but I think the no-argument super call is implicit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dropped it

@Sunjeet Sunjeet merged commit b080244 into master Feb 6, 2020
zurdoron pushed a commit to zurdoron/hollow that referenced this pull request Jul 27, 2020
* Producer Listener support refactored

* Address PR feedback

(cherry picked from commit b080244)
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.

None yet

2 participants