public abstract class UpdateDispatchViewBase extends ViewSupport implements Dispatchable, UpdateDispatchView
Modifier and Type | Field and Description |
---|---|
protected DispatchService |
dispatchService
Dispatches events to listeners.
|
protected ThreadLocal<Boolean> |
isDispatchWaiting
Flag to indicate we have registered a dispatch.
|
protected EventBean |
lastIterableEvent
For iteration with patterns.
|
protected StatementResultService |
statementResultService
Handles result delivery
|
EMPTY_VIEW_ARRAY, parent
Constructor and Description |
---|
UpdateDispatchViewBase(StatementResultService statementResultServiceImpl,
DispatchService dispatchService)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Remove event reference to last event.
|
void |
execute()
Execute dispatch.
|
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains.
|
StatementResultService |
getStatementResultService() |
Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection.
|
addView, addView, dumpChildViews, dumpUpdateParams, dumpUpdateParams, findDescendent, findViewIndex, getParent, getViews, hasViews, removeAllViews, removeView, removeView, setParent, updateChildren, updateChildren
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newResult
addView, getViews, hasViews, removeAllViews, removeView
forEach, spliterator
protected final StatementResultService statementResultService
protected final DispatchService dispatchService
protected EventBean lastIterableEvent
protected ThreadLocal<Boolean> isDispatchWaiting
public UpdateDispatchViewBase(StatementResultService statementResultServiceImpl, DispatchService dispatchService)
dispatchService
- - for performing the dispatchstatementResultServiceImpl
- - handles result deliverypublic EventType getEventType()
EventCollection
getEventType
in interface EventCollection
public Iterator<EventBean> iterator()
EventCollection
iterator
in interface EventCollection
iterator
in interface Iterable<EventBean>
public void execute()
Dispatchable
execute
in interface Dispatchable
public void clear()
public StatementResultService getStatementResultService()