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
955 B
40 lines
955 B
4 years ago
|
package com.fanruan.fs.s3.repository.core;
|
||
|
|
||
|
import com.fr.config.Identifier;
|
||
|
import com.fr.config.holder.Conf;
|
||
|
import com.fr.config.holder.factory.Holders;
|
||
|
import com.fr.io.context.info.RepositoryProfile;
|
||
|
|
||
|
/**
|
||
|
* @author richie
|
||
|
* @version 10.0
|
||
|
* Created by richie on 2020/6/15
|
||
|
*/
|
||
|
public class S3RepositoryProfile extends RepositoryProfile<S3Config> {
|
||
|
|
||
|
public S3RepositoryProfile() {
|
||
|
|
||
|
}
|
||
|
|
||
|
@Identifier("s3Config")
|
||
|
private Conf<S3Config> s3Config = Holders.obj(null, S3Config.class);
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public S3Config getConfig() {
|
||
|
return s3Config.get();
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void setConfig(S3Config s3Config) {
|
||
|
this.s3Config.set(s3Config);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public RepositoryProfile<S3Config> clone() throws CloneNotSupportedException {
|
||
|
S3RepositoryProfile cloned = (S3RepositoryProfile) super.clone();
|
||
|
cloned.s3Config = (Conf<S3Config>) s3Config.clone();
|
||
|
return cloned;
|
||
|
}
|
||
|
}
|