Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Is there a way to restrict which classes can catch events? #24

Open
rdwallis opened this issue Aug 18, 2014 · 0 comments
Open

Is there a way to restrict which classes can catch events? #24

rdwallis opened this issue Aug 18, 2014 · 0 comments

Comments

@rdwallis
Copy link

I use a pattern where events can either only be fired from classes in the same package (constructor is package-private) or events can only be caught by classes in the same package (handler is package private)

This makes it really easy to reason about the program flow and I catch a lot of bugs with this pattern.

Without handlers is it possible to restrict which classes can catch events?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant