public class PushContextImpl extends Object implements PushContext, javax.faces.event.SystemEventListener
PushContext
INSTANCE_KEY_NAME
Constructor and Description |
---|
PushContextImpl(String pushHandlerUrl) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys this
PushContext instance once the application is teared down. |
String |
getPushHandlerUrl()
Returns the URL on which listens Push handler
|
SessionFactory |
getSessionFactory() |
SessionManager |
getSessionManager() |
TopicsContext |
getTopicsContext() |
void |
init(javax.faces.context.FacesContext facesContext)
Initializes
PushContext instance once the application is started. |
boolean |
isListenerForSource(Object source) |
void |
processEvent(javax.faces.event.SystemEvent event)
Destroyes this push context before the application is destroyed
|
public PushContextImpl(String pushHandlerUrl)
public void init(javax.faces.context.FacesContext facesContext)
PushContext
PushContext
instance once the application is started.init
in interface PushContext
public void destroy()
PushContext
PushContext
instance once the application is teared down.destroy
in interface PushContext
public void processEvent(javax.faces.event.SystemEvent event) throws javax.faces.event.AbortProcessingException
processEvent
in interface javax.faces.event.SystemEventListener
javax.faces.event.AbortProcessingException
public boolean isListenerForSource(Object source)
isListenerForSource
in interface javax.faces.event.SystemEventListener
public TopicsContext getTopicsContext()
getTopicsContext
in interface PushContext
public SessionFactory getSessionFactory()
getSessionFactory
in interface PushContext
public SessionManager getSessionManager()
getSessionManager
in interface PushContext
public String getPushHandlerUrl()
PushContext
getPushHandlerUrl
in interface PushContext
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.