The four lines of code at the bottom of Listing 1 prove that no matter how many times you ask for an instance of the ConnPool pool class, it will always return the same object.
清单1底部的四行代码则证明无论请求ConnPool池类的一个实例多少次,它都会返回相同的对象。
For example, during injection, the manager will ask the referenced managers to provide an object that will be injected into the component that the manager is creating.
例如,在注入期间,管理器将要求被引用的管理器提供对象,该对象将被注入到管理器正在创建的组件中。
Later, you can ask PicoContainer for an object, then exercise it.
稍后您可以向PicoContainer请求一个对象,然后操作它。
应用推荐