From 875b9b35146a0e1c9da2c4de7c1dcf0a45698f52 Mon Sep 17 00:00:00 2001 From: Martin Ritchie Date: Thu, 20 May 2010 15:18:59 +0000 Subject: QPID-2622 : Add Closeable interface and update Broker components to use it and add close method in ApplicationRegistry to safely perform the close. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@946667 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/qpid/common/Closeable.java | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 java/common/src/main/java/org/apache/qpid/common/Closeable.java (limited to 'java/common/src/main') diff --git a/java/common/src/main/java/org/apache/qpid/common/Closeable.java b/java/common/src/main/java/org/apache/qpid/common/Closeable.java new file mode 100644 index 0000000000..45a98b5843 --- /dev/null +++ b/java/common/src/main/java/org/apache/qpid/common/Closeable.java @@ -0,0 +1,27 @@ +/* + * + * 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.qpid.common; + + +public interface Closeable +{ + public void close(); +} -- cgit v1.2.1