> singleton
> 主要是把业务逻辑分发出去,有点类似action,不应该造成单
> 叱贪?>
分发业务逻辑???
请参考singleton的定义:
public class Sn {
private static Sn ourInstance;
public synchronized static Sn getInstance() {
if (ourInstance == null) {
ourInstance = new Sn();
}
return ourInstance;
}
private Sn() {
}
}