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


上一篇:
下一篇:
切换中文