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.
例如,在注入期间,管理器将要求被引用的管理器提供对象,该对象将被注入到管理器正在创建的组件中。
The AppConfig object will give you an array or hash reference when you ask for a variable's value.
当您请求变量值时,AppConfig对象将给您数组或散列引用。
Unlike class based types, anything can implement them or adapt to them, and all proper code in the Zope 3 system should ask for an interface implementation for a given object.
不象基于类型的类,任何东西都可以实现或适配它们,并且在Zope3系统中的所有适用代码都可以请求一个接口以实现给定的对象。
A client could also ask first for a more sophisticated new interface, and if the object does not provide it, the client can ask for an "older" interface and provide a workaround.
客户端同样能够首先检查一个更成熟的新接口,且如果COM对象不能提供它,客户端能够请求“旧的”,能让工作走通。
A client could also ask first for a more sophisticated new interface, and if the object does not provide it, the client can ask for an "older" interface and provide a workaround.
客户端同样能够首先检查一个更成熟的新接口,且如果COM对象不能提供它,客户端能够请求“旧的”,能让工作走通。
应用推荐