Package com.weicoder.common.factory
Class FactoryKey<K,E>
- java.lang.Object
-
- com.weicoder.common.factory.Factory<E>
-
- com.weicoder.common.factory.FactoryKey<K,E>
-
- Direct Known Subclasses:
ConfigFactory,FactoryInterface,LogFactory
public abstract class FactoryKey<K,E> extends Factory<E>
拥有Key功能的工厂基础实现 根据Key生成单例- Author:
- WD
-
-
Constructor Summary
Constructors Constructor Description FactoryKey()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description EgetInstance(K key)获得实例 单例模式EnewInstance()实例化新实例abstract EnewInstance(K key)实例化新实例-
Methods inherited from class com.weicoder.common.factory.Factory
getInstance
-
-
-
-
Method Detail
-
newInstance
public E newInstance()
实例化新实例- Specified by:
newInstancein classFactory<E>- Returns:
- 新实例
-
-