01: /*
02: * $Id: Disposable.java 10529 2008-01-25 05:58:36Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
10:
11: package org.mule.api.lifecycle;
12:
13: /**
14: * <code>Disposable</code> is a lifecycle interface that gets called at the dispose
15: * lifecycle stage of the implementing service as the service is being destroyed.
16: */
17: public interface Disposable {
18: static final String PHASE_NAME = "dispose";
19:
20: /**
21: * A lifecycle method where implementor should free up any resources. If an
22: * exception is thrown it should just be logged and processing should continue.
23: * This method should not throw Runtime exceptions.
24: */
25: void dispose();
26: }
|