KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > osgi > framework > adaptor > EventPublisher


1 /*******************************************************************************
2  * Copyright (c) 2003, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.osgi.framework.adaptor;
13
14 import org.osgi.framework.Bundle;
15
16 /**
17  * The EventPublisher is used by FrameworkAdaptors to publish events to the
18  * Framework.
19  * <p>
20  * This interface is not intended to be implemented by clients.
21  * </p>
22  * @since 3.1
23  */

24 public interface EventPublisher {
25
26     /**
27      * Publish a FrameworkEvent.
28      *
29      * @param type FrameworkEvent type.
30      * @param bundle Bundle related to FrameworkEven or <tt>null</tt> to for the
31      * system bundle.
32      * @param throwable Related exception or <tt>null</tt>.
33      * @see org.osgi.framework.FrameworkEvent
34      */

35     public abstract void publishFrameworkEvent(int type, Bundle bundle, Throwable JavaDoc throwable);
36
37 }
38
Popular Tags