Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: b0c5aa0008d4a19f57befc8cc367027a7c368248 (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
/*******************************************************************************
 * Copyright (c) 2008 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package test.link.e;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import test.link.e.service1.Service1;
import test.link.e.service2.Service2;
import test.link.e.service3.Service3;

public class Activator implements BundleActivator {

	public void start(BundleContext context) throws Exception {
		context.registerService(Service1.class.getName(), new Service1() {}, null);
		context.registerService(new String[] {Service1.class.getName(), Service2.class.getName()}, new Service2() {}, null);
		context.registerService(new String[] {Service1.class.getName(), Service2.class.getName(), Service3.class.getName()}, new Service3() {}, null);
	}

	public void stop(BundleContext context) throws Exception {
		// nothing
	}

}

Back to the top