1 /*2 * JBoss, the OpenSource J2EE webOS3 *4 * Distributable under LGPL license.5 * See terms of license at gnu.org.6 */7 package org.jboss.jms.client;8 9 import javax.jms.JMSException ;10 11 /**12 * The lifecycle13 * 14 * @author <a HREF="mailto:adrian@jboss.org>Adrian Brock</a>15 * @version $Revision: 1.1 $16 */17 public interface Lifecycle 18 {19 // Constants -----------------------------------------------------20 21 // Public --------------------------------------------------------22 23 /**24 * Notify about to close25 * 26 * @throws JMSException for any error27 */28 void closing() throws JMSException ;29 30 /**31 * Close the delegate32 * 33 * @throws JMSException for any error34 */35 void close() throws JMSException ;36 37 // Inner Classes --------------------------------------------------38 }39