public class FactoryLoader extends java.lang.Object implements FactoryLoaderProvider
Created by rinoux on 2018/3/17.
构造器和说明 |
---|
FactoryLoader() |
限定符和类型 | 方法和说明 |
---|---|
<T extends RepositoryConfig> |
add(RepositoryFactoryProvider<T> factory)
载入一个工厂
|
<T extends RepositoryConfig> |
get(java.lang.String identity)
查找工厂
|
static FactoryLoaderProvider |
getInstance() |
void |
remove(java.lang.String identity)
卸去一个工厂
|
public static FactoryLoaderProvider getInstance()
public <T extends RepositoryConfig> void add(RepositoryFactoryProvider<T> factory)
FactoryLoaderProvider
add
在接口中 FactoryLoaderProvider
factory
- 资源仓库工厂public void remove(java.lang.String identity)
FactoryLoaderProvider
remove
在接口中 FactoryLoaderProvider
identity
- 仓库类型标识public <T extends RepositoryConfig> RepositoryFactoryProvider<T> get(java.lang.String identity)
FactoryLoaderProvider
get
在接口中 FactoryLoaderProvider
identity
- 类型