一個ManagedServiceFactory的註冊如下是可以做到: -ManagedServiceFactory使用藍圖
private ServiceRegistration factoryService;
public void start(BundleContext context) {
Dictionary props = new Hashtable();
props.put("service.pid", "test.smssenderfactory");
factoryService = context.registerService(ManagedServiceFactory.class.getName(),
new SmsSenderFactory(), props);
}
如何才能做到這一點的藍圖(樣品的例子是非常有用的)?