org.apache.commons.events.observable.standard
Interface StandardPreModificationListener

All Superinterfaces:
EventListener, ModificationListener
All Known Subinterfaces:
StandardModificationListener

public interface StandardPreModificationListener
extends ModificationListener

A listener for the StandardModificationHandler that is called when a collection is about to be modified.

Since:
Commons Events 1.0
Version:
$Revision: 155443 $ $Date: 2005-02-26 13:19:51 +0000 (Sat, 26 Feb 2005) $
Author:
Stephen Colebourne

Method Summary
 void modificationOccurring(StandardPreModificationEvent event)
          A collection modification is occurring.
 

Method Detail

modificationOccurring

void modificationOccurring(StandardPreModificationEvent event)
A collection modification is occurring.

To veto the change, throw ModicationVetoedException.

This method should be processed quickly, as with all event handling. It should also avoid modifying the event source (the collection).

Parameters:
event - the event detail
Throws:
ModicationVetoedException - to veto


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.