public abstract class SimpleRepositoryFactory
extends java.lang.Object
构造器和说明 |
---|
SimpleRepositoryFactory(java.lang.String identity) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Class |
getConfigClass()
配置类型
|
RepositoryConfigManagerProvider |
getConfigManager()
获取配置管理
|
java.lang.String |
getIdentity()
仓库标识
|
java.lang.Class<? extends RepositoryProfile> |
getProfileClass()
profile的类
|
ResourceRepository |
produce(java.lang.String repoName,
java.lang.String workRoot,
RepositoryConfig config)
生产仓库
|
boolean |
verifyConfig(RepositoryConfig config)
验证配置是否正确
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
produce
public boolean verifyConfig(RepositoryConfig config)
RepositoryFactoryProvider
config
- 配置public RepositoryConfigManagerProvider getConfigManager()
RepositoryFactoryProvider
public ResourceRepository produce(java.lang.String repoName, java.lang.String workRoot, RepositoryConfig config)
RepositoryFactoryProvider
repoName
- 仓库名称workRoot
- 工作路径config
- 所需配置public java.lang.Class<? extends RepositoryProfile> getProfileClass()
RepositoryFactoryProvider
public java.lang.Class getConfigClass()
RepositoryFactoryProvider
public java.lang.String getIdentity()
RepositoryFactoryProvider
getIdentity
在接口中 RepositoryFactoryProvider<T extends RepositoryConfig>