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