Package com.sun.faces.push
Class WebsocketChannelManager.ViewScope
java.lang.Object
com.sun.faces.push.WebsocketChannelManager.ViewScope
- All Implemented Interfaces:
Serializable
- Enclosing class:
- WebsocketChannelManager
@ViewScoped public static class WebsocketChannelManager.ViewScope extends Object implements Serializable
This helps the web socket channel manager to hold view scoped web socket channel identifiers registered by
<f:websocket>
.- Since:
- 2.3
- Author:
- Bauke Scholtz
- See Also:
WebsocketChannelManager
, Serialized Form
-
Constructor Summary
Constructors Constructor Description ViewScope()
-
Method Summary
Modifier and Type Method Description protected void
deregisterViewScope()
When current view scope is about to be destroyed, deregister all view scope channels and explicitly close any open web sockets associated with it to avoid stale websockets.
-
Constructor Details
-
ViewScope
public ViewScope()
-
-
Method Details
-
deregisterViewScope
@PreDestroy protected void deregisterViewScope()When current view scope is about to be destroyed, deregister all view scope channels and explicitly close any open web sockets associated with it to avoid stale websockets.
-