Removed ViewListener. Rectored how beans are notified to dispose their resources. Application beans need to implement com.icesoft.faces.context.DisposableBean interface to receive the notification based on what their scope is.
When in scope:
- request - beans are disposed when view is disposed
- session - beans are disposed when session expires
- application - beans are disposed when context is destroyed
Also, for beans in request scope and concurrentDOMViews=false the view is reused on reload so the application beans are reused as well (no disposing).
Removed ViewListener. Rectored how beans are notified to dispose their resources. Application beans need to implement com.icesoft.faces.context.DisposableBean interface to receive the notification based on what their scope is.
When in scope:
Also, for beans in request scope and concurrentDOMViews=false the view is reused on reload so the application beans are reused as well (no disposing).