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