<dependencies> <dependency> <groupId>org.osgi.enroute</groupId> <artifactId>webconsole.xray.provider</artifactId> <version>1.0.0</version> </dependency> </dependencies> import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; public class Activator implements BundleActivator { public void start(BundleContext bundleContext) throws Exception { bundleContext.registerService(Object.class.getName(), new WebConsoleXRayProvider(), null); } public void stop(BundleContext bundleContext) throws Exception { } }


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