Lifecycle of project-layer containers

Answered

When a project is being closed, is dispose() propagated to all services/components in project-level DI context? I have some clean-up logic that I want to bind to a moment of the project's closing. Now I achieve this by listening events via MessageBus, but it looks kinda hack for me - I usually write high-level business logic in event listeners and don't want to listen to the project closing event in every service/component, which requires special low-level clean-up, like stopping scheduled executors, etc. 

1 comment
Comment actions Permalink

If everything implements com.intellij.openapi.Disposable, then it will work.

0

Please sign in to leave a comment.