| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.transaction.ResourceSetListenerImpl
org.eclipse.emf.transaction.DemultiplexingListener
public abstract class DemultiplexingListener
A convenient superclass for post-commit listeners to process
 Notifications one at a time.  This effectively demultiplexes the
 list of batched notifications.
| 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 thehandleNotification(org.eclipse.emf.transaction.TransactionalEditingDomain, org.eclipse.emf.common.notify.Notification)method. | 
| Methods inherited from class org.eclipse.emf.transaction.ResourceSetListenerImpl | 
|---|
| getFilter, isAggregatePrecommitListener, isPrecommitOnly, transactionAboutToCommit | 
| 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 default| Method 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 ResourceSetListenerresourceSetChanged in class ResourceSetListenerImplevent - 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 ResourceSetListenerisPostcommitOnly in class ResourceSetListenerImpltrue 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 | |||||||||