01: package com.technoetic.xplanner.security.auth;
02:
03: import org.apache.log4j.Logger;
04:
05: public class SystemAuthorizer {
06: private static Authorizer authorizer;
07: private static Logger log = Logger
08: .getLogger(SystemAuthorizer.class);
09:
10: /**
11: * @deprecated DEBT(SPRING) Should be injected
12: */
13: public static Authorizer get() {
14: if (authorizer == null) {
15: log.warn("The authorizer has not been set yet $$$$$$$$");
16: }
17:
18: return authorizer;
19: }
20:
21: public static void set(Authorizer authorizer) {
22: SystemAuthorizer.authorizer = authorizer;
23: }
24: }
|