/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.avalon.framework.activity;

The Disposable interface is used when components need to deallocate and dispose resources prior to their destruction.
Author:Avalon Development Team
Version:$Id: Disposable.java 506231 2007-02-12 02:36:54Z crossley $
/** * The Disposable interface is used when components need to * deallocate and dispose resources prior to their destruction. * * @author <a href="mailto:dev@avalon.apache.org">Avalon Development Team</a> * @version $Id: Disposable.java 506231 2007-02-12 02:36:54Z crossley $ */
public interface Disposable {
The dispose operation is called at the end of a components lifecycle. This method will be called after Startable.stop() method (if implemented by component). Components use this method to release and destroy any resources that the Component owns.
/** * The dispose operation is called at the end of a components lifecycle. * This method will be called after Startable.stop() method (if implemented * by component). Components use this method to release and destroy any * resources that the Component owns. */
void dispose(); }