public class EventQueueProviderImpl extends EventQueueProviderImpl
EventQueues.GROUP
.ATTR_EVENT_QUEUES
Constructor and Description |
---|
EventQueueProviderImpl() |
Modifier and Type | Method and Description |
---|---|
<T extends Event> |
lookup(java.lang.String name,
java.lang.String scope,
boolean autoCreate)
Returns the event queue with the specified name in the
specified scope.
|
boolean |
remove(java.lang.String name,
java.lang.String scope)
Removes the event queue.
|
lookup, lookup, remove, remove
public <T extends Event> EventQueue<T> lookup(java.lang.String name, java.lang.String scope, boolean autoCreate)
EventQueueProvider
Note:
Executions.getCurrent()
not null.EventQueueProviderImpl
is used.
To customize it, refer to EventQueues
.
lookup
in interface EventQueueProvider
lookup
in class EventQueueProviderImpl
name
- 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 boolean remove(java.lang.String name, java.lang.String scope)
EventQueueProvider
remove
in interface EventQueueProvider
remove
in class EventQueueProviderImpl
name
- 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.Copyright © 2005-2011 Potix Corporation. All Rights Reserved.