001 // License: GPL. Copyright 2007 by Immanuel Scholz and others
002 package org.openstreetmap.josm.tools;
003
004 /**
005 * Some objects like layers (when they are removed) or the whole map frame (when the last layer has
006 * been removed) have an definite set of actions to execute. This is the "destructor" interface called
007 * on those objects.
008 *
009 * @author immanuel.scholz
010 */
011 public interface Destroyable {
012
013 /**
014 * Called when the object has been destroyed.
015 */
016 public void destroy();
017 }