Skip to main content
summaryrefslogtreecommitdiffstats
blob: e1dc5f0d929e1a4ab831f9c556f6bc27e007e420 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*******************************************************************************
 * Copyright (c) 2003, 2004 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

package org.eclipse.osgi.framework.adaptor;

import org.osgi.framework.Bundle;

/**
 * The EventPublisher is used by FrameworkAdaptors to publish events to the
 * Framework.
 */
public interface EventPublisher {

	/**
	 * Publish a FrameworkEvent.
	 *
	 * @param type FrameworkEvent type.
	 * @param bundle Bundle related to FrameworkEven or <tt>null</tt> to for the
	 * system bundle.
	 * @param throwable Related exception or <tt>null</tt>.
	 * @see org.osgi.framework.FrameworkEvent
	 */
	public abstract void publishFrameworkEvent(int type, Bundle bundle, Throwable throwable);

}

Back to the top