reference = context.getServiceReference(ISayHello.class.getName());
if(null == reference) {
System.out.println("get reference is null.");
} else {
ISayHello sayHello = (ISayHello) context.getService(reference);
sayHello.sayHello("Mitool");
}
}
public void stop(BundleContext context) throws Exception {
System.out.println("HelloService client stop");