vaadin4spring
vaadin4spring copied to clipboard
Eagerly instantiating UI-scoped beans?
Check if there is a way of instantiating a UI scoped bean when the UI scope is activated, even though the bean has not been injected anywhere.
That would be nice: I had a hard time figuring out why my view events where not picked-up by the presenter. As a workaroud I had to inject the presenter in my UI class.
My, perhaps sloppy, answer to this was to ask for the beans from the ApplicationContext via annotation in UI.init().