public class FTPRepositoryFactory extends ConfigRepositoryFactory<FTPConfig>
限定符和类型 | 方法和说明 |
---|---|
java.lang.Class<FTPConfig> |
getConfigClass()
配置类型
|
java.lang.String |
getIdentity()
仓库标识
|
static RepositoryFactoryProvider |
getInstance() |
java.lang.Class<? extends RepositoryProfile<FTPConfig>> |
getProfileClass()
profile的类
|
ResourceRepository |
produce(java.lang.String repoName,
java.lang.String workRoot,
FTPConfig ftpConfig)
生产仓库
|
boolean |
verifyConfig(FTPConfig config)
验证配置是否正确
|
getConfigManager, produce
public static RepositoryFactoryProvider getInstance()
public java.lang.Class<? extends RepositoryProfile<FTPConfig>> getProfileClass()
RepositoryFactoryProvider
public java.lang.Class<FTPConfig> getConfigClass()
RepositoryFactoryProvider
public boolean verifyConfig(FTPConfig config)
RepositoryFactoryProvider
config
- 配置public ResourceRepository produce(java.lang.String repoName, java.lang.String workRoot, FTPConfig ftpConfig)
RepositoryFactoryProvider
repoName
- 仓库名称workRoot
- 工作路径ftpConfig
- 所需配置public java.lang.String getIdentity()
RepositoryFactoryProvider
getIdentity
在接口中 RepositoryFactoryProvider<T extends RepositoryConfig>