Parent: [543a35] (diff)

Child: [55846c] (diff)

Download this file

Activator.java    26 lines (20 with data), 755 Bytes

 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
package net.timbusproject.extractors.modules.tavernaextractor;
import net.timbusproject.extractors.core.IExtractor;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
/**
* Created by marco unterberger on 18.08.2014.
* munterberger@sba-research.org
*/
public class Activator implements BundleActivator {
@Override
public void start(BundleContext bundleContext) throws Exception {
IExtractor extractor = new TavernaExtractor(true);
bundleContext.registerService(TavernaExtractor.class.getName(), extractor,
null);
System.out.println("TavernaExtractor is registered.");
}
@Override
public void stop(BundleContext bundleContext) throws Exception {
}
}