86
|
1 /*
|
|
2 * $Header: /cvshome/build/org.osgi.framework/src/org/osgi/framework/FrameworkListener.java,v 1.12 2007/02/21 16:49:05 hargrave Exp $
|
105
|
3 *
|
86
|
4 * Copyright (c) OSGi Alliance (2000, 2007). All Rights Reserved.
|
105
|
5 *
|
86
|
6 * Licensed under the Apache License, Version 2.0 (the "License");
|
|
7 * you may not use this file except in compliance with the License.
|
|
8 * You may obtain a copy of the License at
|
|
9 *
|
|
10 * http://www.apache.org/licenses/LICENSE-2.0
|
|
11 *
|
|
12 * Unless required by applicable law or agreed to in writing, software
|
|
13 * distributed under the License is distributed on an "AS IS" BASIS,
|
|
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15 * See the License for the specific language governing permissions and
|
|
16 * limitations under the License.
|
|
17 */
|
|
18
|
105
|
19 // Port to the D programming language:
|
|
20 // Frank Benoit <benoit@tionex.de>
|
86
|
21 module org.osgi.framework.FrameworkListener;
|
|
22
|
|
23 import java.lang.all;
|
105
|
24
|
|
25 import org.osgi.framework.FrameworkEvent; // packageimport
|
|
26
|
86
|
27 import java.util.EventListener;
|
|
28
|
|
29 /**
|
|
30 * A <code>FrameworkEvent</code> listener. <code>FrameworkListener</code> is
|
|
31 * a listener interface that may be implemented by a bundle developer. When a
|
|
32 * <code>FrameworkEvent</code> is fired, it is asynchronously delivered to a
|
|
33 * <code>FrameworkListener</code>. The Framework delivers
|
|
34 * <code>FrameworkEvent</code> objects to a <code>FrameworkListener</code>
|
|
35 * in order and must not concurrently call a <code>FrameworkListener</code>.
|
105
|
36 *
|
86
|
37 * <p>
|
|
38 * A <code>FrameworkListener</code> object is registered with the Framework
|
|
39 * using the {@link BundleContext#addFrameworkListener} method.
|
|
40 * <code>FrameworkListener</code> objects are called with a
|
|
41 * <code>FrameworkEvent</code> objects when the Framework starts and when
|
|
42 * asynchronous errors occur.
|
105
|
43 *
|
86
|
44 * @see FrameworkEvent
|
|
45 * @NotThreadSafe
|
|
46 * @version $Revision: 1.12 $
|
|
47 */
|
|
48
|
|
49 public interface FrameworkListener : EventListener {
|
|
50
|
|
51 /**
|
|
52 * Receives notification of a general <code>FrameworkEvent</code> object.
|
105
|
53 *
|
86
|
54 * @param event The <code>FrameworkEvent</code> object.
|
|
55 */
|
|
56 public void frameworkEvent(FrameworkEvent event);
|
|
57 }
|