android---synchronized同步锁+单利模式

 

 

public static synchronized VolleyRequestController getInstance() {
        if (sInstance == null) {
            sInstance = new VolleyRequestController();
            VolleyLog.DEBUG = ConfigEPA.DEBUG;
        }
        return sInstance;
    }


posted @ 2014-07-18 16:41  JavAndroidJSql  阅读(405)  评论(0编辑  收藏  举报