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

subscribing with hard reference #2

Closed
aappddeevv opened this issue Nov 21, 2012 · 1 comment
Closed

subscribing with hard reference #2

aappddeevv opened this issue Nov 21, 2012 · 1 comment
Labels

Comments

@aappddeevv
Copy link

Is there a way to subscribe with a hard versus weak reference?

@bennidi
Copy link
Owner

bennidi commented Nov 22, 2012

Currently, subscribing with hard references is not part of the functionality. I think that maintain strong references to the beans that listen for messages (and therefore managing their lifecycle) is the responsibility of the application that uses the bus and not of the bus itself. Besides, it's quite easy to wrap MBassador into another class and just maintain strong references there, if necessary. But I would be interested in your usecase.

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

No branches or pull requests

2 participants