|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.transaction.ResourceSetListenerImpl org.eclipse.emf.transaction.DemultiplexingListener
public abstract class DemultiplexingListener
A convenient superclass for post-commit listeners to process
Notification
s one at a time. This effectively demultiplexes the
list of batched notifications.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.emf.transaction.ResourceSetListener |
---|
ResourceSetListener.Internal |
Constructor Summary | |
---|---|
DemultiplexingListener()
Initializes me with the default filter. |
|
DemultiplexingListener(NotificationFilter filter)
Initializes me with the specified filter. |
Method Summary | |
---|---|
protected abstract void |
handleNotification(TransactionalEditingDomain domain,
Notification notification)
Implemented by subclasses to respond to each notification in serial order. |
boolean |
isPostcommitOnly()
I want only post-commit events, not pre-commit events. |
void |
resourceSetChanged(ResourceSetChangeEvent event)
Implements the post-commit callback by processing the event 's
notifications one by one, delegating to the handleNotification(org.eclipse.emf.transaction.TransactionalEditingDomain, org.eclipse.emf.common.notify.Notification)
method. |
Methods inherited from class org.eclipse.emf.transaction.ResourceSetListenerImpl |
---|
getFilter, getTarget, isAggregatePrecommitListener, isPrecommitOnly, setTarget, transactionAboutToCommit, unsetTarget |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DemultiplexingListener()
public DemultiplexingListener(NotificationFilter filter)
filter
- my filter, or null
to specify the defaultMethod Detail |
---|
public void resourceSetChanged(ResourceSetChangeEvent event)
event
's
notifications one by one, delegating to the handleNotification(org.eclipse.emf.transaction.TransactionalEditingDomain, org.eclipse.emf.common.notify.Notification)
method.
resourceSetChanged
in interface ResourceSetListener
resourceSetChanged
in class ResourceSetListenerImpl
event
- the event object describing the changes that occurred in
the resource sethandleNotification(TransactionalEditingDomain, Notification)
protected abstract void handleNotification(TransactionalEditingDomain domain, Notification notification)
domain
- the editing domain from which the notification originatednotification
- the notification describing a change in the modelresourceSetChanged(ResourceSetChangeEvent)
public boolean isPostcommitOnly()
isPostcommitOnly
in interface ResourceSetListener
isPostcommitOnly
in class ResourceSetListenerImpl
true
if I only am interested in post-commit events;
false
, otherwise
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |