46 lines
1003 B
Java
46 lines
1003 B
Java
|
//
|
||
|
// Source code recreated from a .class file by IntelliJ IDEA
|
||
|
// (powered by FernFlower decompiler)
|
||
|
//
|
||
|
|
||
|
package weaver.general;
|
||
|
|
||
|
import org.apache.commons.logging.Log;
|
||
|
import org.apache.commons.logging.LogFactory;
|
||
|
import weaver.file.LogMan;
|
||
|
import weaver.file.Prop;
|
||
|
|
||
|
import java.util.Properties;
|
||
|
|
||
|
public class BaseBean {
|
||
|
private static final Prop prop = Prop.getInstance();
|
||
|
private static final LogMan log = LogMan.getInstance();
|
||
|
|
||
|
public BaseBean() {
|
||
|
}
|
||
|
|
||
|
public String getPropValue(String var1, String var2) {
|
||
|
Prop var10000 = prop;
|
||
|
return Prop.getPropValue(var1, var2);
|
||
|
}
|
||
|
|
||
|
public Properties LoadTemplateProp(String var1) {
|
||
|
Prop var10000 = prop;
|
||
|
return Prop.loadTemplateProp(var1);
|
||
|
}
|
||
|
|
||
|
public void writeLog(Object var1) {
|
||
|
this.writeLog(this.getClass().getName(), var1);
|
||
|
}
|
||
|
|
||
|
public void writeLog(String var1, Object var2) {
|
||
|
Log var3 = LogFactory.getLog(var1);
|
||
|
if (var2 instanceof Exception) {
|
||
|
var3.error(var1, (Exception) var2);
|
||
|
} else {
|
||
|
var3.error(var2);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|