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