I need to show modal login dialog right after the window initialized. My current solution is to extend DefaultApplicationLifecycleAdvisor and override one of the onXXX().
The problem is that the authentication proccess handled by a singleton bean stored in the application context. and i cant find any way to access the application context from DefaultApplicationLifecycleAdvisor. how to do that?
Or there is better way to show dialog at startup?