We could either implement each state as a Singleton, or create a factory of states which creates and manages the states.
我们既可以执行每个状态作为 Singleton,也可以创建一个状态工厂用于生成和管理状态。
In this way, the object returned from the static factory method could implement any number of interfaces defined when I create the proxy.
用这种方式,静态工厂方法返回的对象可以实现建立代理时所定义的任意数量的接口。
The custom service factory class should implement the OSGi ServiceFactory interface.
该定制服务工厂类应该实现 OSGi ServiceFactory 接口。
应用推荐