You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
986 B
40 lines
986 B
4 years ago
|
package com.fanruan.fs.s3.repository.core;
|
||
|
|
||
|
import com.fr.io.base.provider.impl.ConfigRepositoryFactory;
|
||
|
import com.fr.io.context.info.RepositoryProfile;
|
||
|
import com.fr.io.repository.ResourceRepository;
|
||
|
|
||
|
/**
|
||
|
* @author richie
|
||
|
* @version 10.0
|
||
|
* Created by richie on 2020/6/15
|
||
|
*/
|
||
|
public class S3RepositoryFactory extends ConfigRepositoryFactory<S3Config> {
|
||
|
|
||
|
static final String IDENTITY = "S3";
|
||
|
|
||
|
public S3RepositoryFactory() {
|
||
|
super(IDENTITY);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public Class<? extends RepositoryProfile<S3Config>> getProfileClass() {
|
||
|
return S3RepositoryProfile.class;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public Class<S3Config> getConfigClass() {
|
||
|
return S3Config.class;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public boolean verifyConfig(S3Config s3Config) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public ResourceRepository produce(String repoName, String workRoot, S3Config config) {
|
||
|
return new S3ResourceRepository(repoName, workRoot, null, null);
|
||
|
}
|
||
|
}
|