|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.event.impl.EventQueueProviderImpl
public class EventQueueProviderImpl
A simple implementation of EventQueueProvider.
| Field Summary | |
|---|---|
protected static java.lang.String |
ATTR_EVENT_QUEUES
The attribute used to store the map of event queues. |
| Constructor Summary | |
|---|---|
EventQueueProviderImpl()
|
|
| Method Summary | ||
|---|---|---|
|
lookup(java.lang.String name,
Session sess,
boolean autoCreate)
Returns the event queue with the specified name in the give session (i.e., the scope). |
|
|
lookup(java.lang.String name,
java.lang.String scope,
boolean autoCreate)
Returns the event queue with the specified name in the specified scope. |
|
|
lookup(java.lang.String name,
WebApp wapp,
boolean autoCreate)
Returns the event queue with the specified name in the give application (i.e., the scope). |
|
boolean |
remove(java.lang.String name,
Session sess)
Removes the event queue of the specified session. |
|
boolean |
remove(java.lang.String name,
java.lang.String scope)
Removes the event qeueue. |
|
boolean |
remove(java.lang.String name,
WebApp wapp)
Removes the event queue of the specified application. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String ATTR_EVENT_QUEUES
| Constructor Detail |
|---|
public EventQueueProviderImpl()
| Method Detail |
|---|
public <T extends Event> EventQueue<T> lookup(java.lang.String name,
java.lang.String scope,
boolean autoCreate)
EventQueueProviderNote:
Executions.getCurrent() not null.EventQueueProviderImpl is used.
To customize it, refer to EventQueues.
lookup in interface EventQueueProvidername - the name of the event queue.scope - the scope of the event queue.
It must support EventQueues.DESKTOP and EventQueues.APPLICATION.
Developers might extend it to support other types of event queues.autoCreate - whether to create the event queue if not found.
public <T extends Event> EventQueue<T> lookup(java.lang.String name,
Session sess,
boolean autoCreate)
EventQueueProviderUnlike EventQueueProvider.lookup(String, String, boolean), this method
can be called without an activated execution.
lookup in interface EventQueueProvidersess - the session that the event queue is located (i.e.,
the scope)
public <T extends Event> EventQueue<T> lookup(java.lang.String name,
WebApp wapp,
boolean autoCreate)
EventQueueProviderUnlike EventQueueProvider.lookup(String, String, boolean), this method
can be called without an activated execution.
lookup in interface EventQueueProviderwapp - the Web application that the event queue is located (i.e.,
the scope)
public boolean remove(java.lang.String name,
java.lang.String scope)
EventQueueProvider
remove in interface EventQueueProvidername - the name of the event queue.scope - the scope of the event queue.
It must support EventQueues.DESKTOP and EventQueues.APPLICATION.
Developers might extend it to support other types of event queues.
public boolean remove(java.lang.String name,
Session sess)
EventQueueProviderUnlike EventQueueProvider.remove(String, String), this method
can be called without an activated execution.
remove in interface EventQueueProvidername - the queue name.sess - the session that the event queue is located (i.e.,
the session scope)
public boolean remove(java.lang.String name,
WebApp wapp)
EventQueueProviderUnlike EventQueueProvider.remove(String, String), this method
can be called without an activated execution.
remove in interface EventQueueProvidername - the queue name.wapp - the Web application that the event queue is located (i.e.,
the application scope)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||