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.
 
 

57 lines
1.8 KiB

package com.fr.plugin;
import com.fr.config.*;
import com.fr.config.holder.Conf;
import com.fr.config.holder.factory.Holders;
@Visualization(category = "xx审批插件配置")
public class CBD1Config extends DefaultConfiguration {
private static volatile CBD1Config config = null;
public static CBD1Config getInstance() {
if (config == null) {
config = ConfigContext.getConfigInstance(CBD1Config.class);
}
return config;
}
@Identifier(value = "aName", name = "审批的账号", description = "审批的账号", status = Status.SHOW)
private Conf<String> aName = Holders.simple("xx");
@Identifier(value = "aPwd", name = "审批的密码", description = "审批接口地址", status = Status.SHOW)
private Conf<String> aPwd = Holders.simple("xx");
@Identifier(value = "apiUrl", name = "审批接口地址", description = "审批接口地址", status = Status.SHOW)
private Conf<String> apiUrl = Holders.simple("http:xx/api/km-review/kmReviewRestService/addReview");
public String getApiUrl() {
return apiUrl.get();
}
public void setApiUrl(String apiUrl) {
this.apiUrl.set(apiUrl);
}
public String getaName() {
return aName.get();
}
public void setaName( String aName) {
this.aName .set(aName);
}
public String getaPwd() {
return aPwd.get();
}
public void setaPwd( String aPwd) {
this.aPwd .set(aPwd);
}
@Override
public Object clone() throws CloneNotSupportedException {
CBD1Config cloned = (CBD1Config) super.clone();
cloned.apiUrl = (Conf<String>) this.apiUrl.clone();
cloned.aName = (Conf<String>) this.aName.clone();
cloned.aPwd = (Conf<String>) this.aPwd.clone();
return cloned;
}
}