There are two kinds of “users” of a type: derived types and code that works with instances of the type.
类型有两种“用户”:继承类型,以及使用类型实例的代码。
So, we use a Factory class (a.k.a. an object factory) to provide the client code with instances of Db2AttendeeDAO and DefaultDAO as needed.
因此我们使用Factory类(又名对象工厂),以根据需要为客户机代码提供Db2AttendeeDAO和 DefaultDAO实例。
Populating the free pool with instances improves initial response time, because initial requests for the bean can be satisfied without generating a new instance.
用实例来填充空闲池可以提高初始响应时间,因为对该bean的初始请求不用生成新的实例即可得到满足。
There are two kinds of "users" of a type: derived types and code that works with instances of the type.
类型有两种“用户”:继承类型,以及使用类型实例的代码。
There are two kinds of "users" of a type: derived types and code that works with instances of the type.
类型有两种“用户”:继承类型,以及使用类型实例的代码。
应用推荐