comparison org.eclipse.osgi/osgi/src/org/osgi/framework/BundleListener.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/BundleListener.java,v 1.13 2007/02/21 16:49:05 hargrave Exp $ 2 * $Header: /cvshome/build/org.osgi.framework/src/org/osgi/framework/BundleListener.java,v 1.13 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.BundleListener; 21 module org.osgi.framework.BundleListener;
20 import org.osgi.framework.BundleEvent;
21 22
22 import java.lang.all; 23 import java.lang.all;
24
25 import org.osgi.framework.BundleEvent; // packageimport
26
23 import java.util.EventListener; 27 import java.util.EventListener;
24 28
25 /** 29 /**
26 * A <code>BundleEvent</code> listener. <code>BundleListener</code> is a 30 * A <code>BundleEvent</code> listener. <code>BundleListener</code> is a
27 * listener interface that may be implemented by a bundle developer. When a 31 * listener interface that may be implemented by a bundle developer. When a
33 * A <code>BundleListener</code> object is registered with the Framework using 37 * A <code>BundleListener</code> object is registered with the Framework using
34 * the {@link BundleContext#addBundleListener} method. 38 * the {@link BundleContext#addBundleListener} method.
35 * <code>BundleListener</code>s are called with a <code>BundleEvent</code> 39 * <code>BundleListener</code>s are called with a <code>BundleEvent</code>
36 * object when a bundle has been installed, resolved, started, stopped, updated, 40 * object when a bundle has been installed, resolved, started, stopped, updated,
37 * unresolved, or uninstalled. 41 * unresolved, or uninstalled.
38 * 42 *
39 * @see BundleEvent 43 * @see BundleEvent
40 * @NotThreadSafe 44 * @NotThreadSafe
41 * @version $Revision: 1.13 $ 45 * @version $Revision: 1.13 $
42 */ 46 */
43 47
44 public interface BundleListener : EventListener { 48 public interface BundleListener : EventListener {
45 /** 49 /**
46 * Receives notification that a bundle has had a lifecycle change. 50 * Receives notification that a bundle has had a lifecycle change.
47 * 51 *
48 * @param event The <code>BundleEvent</code>. 52 * @param event The <code>BundleEvent</code>.
49 */ 53 */
50 public void bundleChanged(BundleEvent event); 54 public void bundleChanged(BundleEvent event);
51 } 55 }