Parent: [8d1358] (diff)

Child: [d30f7f] (diff)

Download this file

Activator.java    35 lines (24 with data), 847 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
26
27
28
29
30
31
32
33
34
package net.timbusproject.extractors.modules.tavernaextractor;
import net.timbusproject.extractors.core.IExtractor;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import java.net.URL;
import java.net.URLClassLoader;
/**
* 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 {
ClassLoader cl = ClassLoader.getSystemClassLoader();
URL[] urls = ((URLClassLoader)cl).getURLs();
for(URL url: urls){
System.out.println(url.getFile());
}
System.out.println("TavernaExtractor is registered.");
}
@Override
public void stop(BundleContext bundleContext) throws Exception {
}
}