View Javadoc
1 /*** 2 * NotifyOnExit.java 3 * 4 * Project: Dependency Tool 5 * 6 * WHEN WHO WHAT 7 * 06.06.2003 pko initial public release 8 * 20.02.2003 pko creation 9 * 10 * Copyright 2003 ELCA Informatique SA 11 * Av. de la Harpe 22-24, 1000 Lausanne 13, Switzerland 12 * www.elca.ch 13 * 14 * This library is free software; you can redistribute it and/or 15 * modify it under the terms of the GNU Lesser General Public License 16 * as published by the Free Software Foundation; either version 2.1 of 17 * the License, or (at your option) any later version. 18 * 19 * This library is distributed in the hope that it will be useful, but 20 * WITHOUT ANY WARRANTY; without even the implied warranty of 21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 22 * Lesser General Public License for more details. 23 * 24 * You should have received a copy of the GNU Lesser General Public 25 * License along with this library; if not, write to the Free Software 26 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 27 * USA 28 */ 29 30 package ch.elca.dependency.util; 31 32 /*** 33 * The class <code>NotifyOnExit</code> used as superclass for all 34 * classes which need to be notified just before the termination of 35 * the Dependency Tool. 36 * 37 * @author Pawel Kowalski 38 * @version 1.0-beta 39 */ 40 public abstract class NotifyOnExit { 41 42 /*** 43 * Creates a new <code>NotifyOnExit</code> instance and register 44 * it for termination-notification. 45 */ 46 public NotifyOnExit() { 47 Shutdown.register(this); 48 } 49 50 /*** 51 * Notify the instance of this class that the DependencyTool is 52 * just before termination. This method is abstract, to be 53 * overridden by subclasses which need to implement this its 54 * functionality. 55 */ 56 public abstract void notifyOnExit(); 57 }

This page was automatically generated by Maven