public interface MyService {
void doSomething();
}
public class MyServiceImpl implements MyService {
public void doSomething() {
System.out.println("Doing something...");
}
}
public class Activator implements BundleActivator {
public void start(BundleContext context) {
MyService service = new MyServiceImpl();
context.registerService(MyService.class.getName(), service, null);
}
public void stop(BundleContext context) {
}
}
Bundle-Activator: com.example.Activator
Export-Package: com.example