KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > osgi > framework > FrameworkListener


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 $
3  *
4  * Copyright (c) OSGi Alliance (2000, 2007). All Rights Reserved.
5  *
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
19 package org.osgi.framework;
20
21 import java.util.EventListener JavaDoc;
22
23 /**
24  * A <code>FrameworkEvent</code> listener. <code>FrameworkListener</code> is
25  * a listener interface that may be implemented by a bundle developer. When a
26  * <code>FrameworkEvent</code> is fired, it is asynchronously delivered to a
27  * <code>FrameworkListener</code>. The Framework delivers
28  * <code>FrameworkEvent</code> objects to a <code>FrameworkListener</code>
29  * in order and must not concurrently call a <code>FrameworkListener</code>.
30  *
31  * <p>
32  * A <code>FrameworkListener</code> object is registered with the Framework
33  * using the {@link BundleContext#addFrameworkListener} method.
34  * <code>FrameworkListener</code> objects are called with a
35  * <code>FrameworkEvent</code> objects when the Framework starts and when
36  * asynchronous errors occur.
37  *
38  * @see FrameworkEvent
39  * @NotThreadSafe
40  * @version $Revision: 1.12 $
41  */

42
43 public interface FrameworkListener extends EventListener JavaDoc {
44
45     /**
46      * Receives notification of a general <code>FrameworkEvent</code> object.
47      *
48      * @param event The <code>FrameworkEvent</code> object.
49      */

50     public void frameworkEvent(FrameworkEvent event);
51 }
52
Popular Tags