/**
 * 
 */
package gov.nih.nci.security.acegi.csm.authorization;

/**
 * @author <a href="mailto:joshua.phillips@semanticbits.com">Joshua Phillips</a>
 *
 */
public class AuthorizationSwitch {
	
	private boolean on = true;

	public boolean isOn() {
		return on;
	}

	public void setOn(boolean on) {
		this.on = on;
	}
	
	

}

@@ -60,16 +60,102 @@
 ation;%0A%0A
+import org.apache.commons.logging.Log;%0Aimport org.apache.commons.logging.LogFactory;%0A%0A
 /**%0A * @
@@ -233,16 +233,38 @@
 s%3C/a%3E%0A *
+ @author Rhett Sutphin
 %0A */%0Apub
@@ -299,40 +299,232 @@
 h %7B%0A
-%09%0A%09private boolean on = true;%0A%0A%09
+    private static final Log log = LogFactory.getLog(AuthorizationSwitch.class);%0A%0A    private boolean on = true;%0A%0A    public AuthorizationSwitch() %7B%0A        if (log.isDebugEnabled()) log.debug(this + %22 created%22);%0A    %7D%0A%0A    
 publ
@@ -543,18 +543,24 @@
 sOn() %7B%0A
-%09%09
+        
 return o
@@ -566,13 +566,19 @@
 on;%0A
-%09%7D%0A%0A%09
+    %7D%0A%0A    
 publ
@@ -609,30 +609,322 @@
 ) %7B%0A
-%09%09this.on = on;%0A%09%7D%0A%09%0A%09%0A
+        if (log.isDebugEnabled()) log.debug(this + %22 turned %22 + (on ? %22on%22 : %22off%22));%0A        this.on = on;%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return new StringBuilder(getClass().getSimpleName()).append(%22%5B0x%22)%0A            .append(System.identityHashCode(this)).append('%5D').toString();%0A    %7D
 %0A%7D%0A

Add debug output for tracking state changes