import org.osgi.service.component.annotations.Component; @Component( property = { "osgi.command.scope=example", "osgi.command.function=greet" }, service = ExampleCommand.class ) public class ExampleCommand { public void greet() { System.out.println("Hello World!"); } } example:greet


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