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
DialogContextManagerListener s. |
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, wait
create, create, get, remove
public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
Handle an instance of this class being bound into an HttpSession.
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
event
- 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.HttpSessionBindingListener
event
- HttpSessionBindingEvent to be handledpublic void addDialogContextManagerListener(DialogContextManagerListener listener)
Register a new DialogContextManagerListener
instance.
addDialogContextManagerListener
in interface DialogContextManager
listener
- The new listener instance to be registeredpublic DialogContextManagerListener[] getDialogContextManagerListeners()
Return the set of currently registered DialogContextManagerListener
s.
If there are no registered listeners, a zero-length array is returned.
getDialogContextManagerListeners
in interface DialogContextManager
public void removeDialogContextManagerListener(DialogContextManagerListener listener)
Deregister an existing DialogContextManagerListener
instance.
removeDialogContextManagerListener
in interface DialogContextManager
listener
- 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.