All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.prevayler.util.memento.MementoCollector Maven / Gradle / Ivy

The newest version!
// Prevayler(TM) - The Open-Source Prevalence Layer.
// Copyright (C) 2001 Klaus Wuestefeld.
// This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.

package org.prevayler.util.memento;

/**
 * The memento collector collects the mementos created before the command gets actually executed.
 * 
 * @author Johan Stuyts
 * @version 2.0
 */
public interface MementoCollector {
  /**
   * Add a memento to the memento collection.
   * 
   * @param memento The memento to add.
   */
  public void addMemento(Memento memento);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy