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 aName = Holders.simple("xx"); @Identifier(value = "aPwd", name = "审批的密码", description = "审批接口地址", status = Status.SHOW) private Conf aPwd = Holders.simple("xx"); @Identifier(value = "apiUrl", name = "审批接口地址", description = "审批接口地址", status = Status.SHOW) private Conf 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) this.apiUrl.clone(); cloned.aName = (Conf) this.aName.clone(); cloned.aPwd = (Conf) this.aPwd.clone(); return cloned; } }