public abstract class AbstractDialogContextManager extends Object implements DialogContextManager, javax.servlet.http.HttpSessionBindingListener
Abstract base class for DialogContextManager implementations.
Provides listener registration and event firing convenience methods.
Subclasses are expected to be serializable.
| Constructor and Description |
|---|
AbstractDialogContextManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDialogContextManagerListener(DialogContextManagerListener listener)
Register a new
DialogContextManagerListener instance. |
protected void |
fireOnCreate(DialogContext context)
Fire an
onCreate() event to all registered listeners. |
protected void |
fireOnRemove(DialogContext context)
Fire an
onRemove() event to all registered listeners. |
DialogContextManagerListener[] |
getDialogContextManagerListeners()
Return the set of currently registered
DialogContextManagerListeners. |
void |
removeDialogContextManagerListener(DialogContextManagerListener listener)
Deregister an existing
DialogContextManagerListener instance. |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent event)
Handle an instance of this class being bound into an HttpSession.
|
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
Handle an instance of this class being unbound from an HttpSession.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, get, removepublic void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
Handle an instance of this class being bound into an HttpSession.
valueBound in interface javax.servlet.http.HttpSessionBindingListenerevent - HttpSessionBindingEvent to be handledpublic void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
Handle an instance of this class being unbound from an HttpSession.
valueUnbound in interface javax.servlet.http.HttpSessionBindingListenerevent - HttpSessionBindingEvent to be handledpublic void addDialogContextManagerListener(DialogContextManagerListener listener)
Register a new DialogContextManagerListener instance.
addDialogContextManagerListener in interface DialogContextManagerlistener - The new listener instance to be registeredpublic DialogContextManagerListener[] getDialogContextManagerListeners()
Return the set of currently registered DialogContextManagerListeners.
If there are no registered listeners, a zero-length array is returned.
getDialogContextManagerListeners in interface DialogContextManagerpublic void removeDialogContextManagerListener(DialogContextManagerListener listener)
Deregister an existing DialogContextManagerListener instance.
removeDialogContextManagerListener in interface DialogContextManagerlistener - The existing listener to be deregisteredprotected void fireOnCreate(DialogContext context)
Fire an onCreate() event to all registered listeners.
context - The DialogContext instance that has been createdprotected void fireOnRemove(DialogContext context)
Fire an onRemove() event to all registered listeners.
context - The DialogContext instance that has been removedCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.