1762fcc4ae8bcf707daf19e840ad2dd79275269f.svn-base
1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package com.thinkgem.jeesite.modules.reg.utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Singleton {
protected Logger logger = LoggerFactory.getLogger(getClass());
//类加载时就初始化
private static final Singleton instance = new Singleton();
private Singleton(){}
public static Singleton getInstance(){
return instance;
}
private Boolean rr = true;//登簿变量
private Boolean bj = true;//办结变量
private Boolean zt = true;//状态变量
public Boolean getRr() {
logger.info("*******登簿变量rrget:"+rr.toString());
return rr;
}
public void setRr(Boolean rr) {
logger.info("*******登簿变量rrset:"+rr.toString());
this.rr = rr;
}
public Boolean getBj() {
logger.info("*******办结变量bjget:"+bj.toString());
return bj;
}
public void setBj(Boolean bj) {
logger.info("*******办结变量bjset:"+bj.toString());
this.bj = bj;
}
public Boolean getZt() {
logger.info("*******状态变量ztget:"+zt.toString());
return zt;
}
public void setZt(Boolean zt) {
logger.info("*******状态变量ztset:"+zt.toString());
this.zt = zt;
}
}