工厂组件模式(factory component pattern)使一个Seam组件充当非组件对象的实例化者。当一个上下文变量被引用并且没有值绑定到它上面时,工厂方法将被调用。
基于1个网页-相关网页
Typical examples include a cached DAO, cache of JNDI references, or any sort of common factory or other component that needs to use the Singleton pattern.
典型的例子有:缓存的DAO, JNDI引用的缓存,或者任何类型的公共工厂或者其他需要使用Singleton模式的组件。
In the latter case, the component USES the Factory design pattern to look up the default formatters for the class of the specified value.
在后一种情况下,组件用工厂(Factory)设计模式来查找指定值类的缺省格式化器。
A primary component of the core container is the BeanFactory, an implementation of the Factory pattern.
核心容器的主要组件是BeanFactory,它是工厂模式的实现。
应用推荐