1 16 17 package org.springframework.aop.framework; 18 19 import java.io.Serializable ; 20 21 import org.springframework.util.Assert; 22 23 31 public class ProxyConfig implements Serializable { 32 33 34 private static final long serialVersionUID = -8409359707199703185L; 35 36 37 private boolean proxyTargetClass = false; 38 39 private boolean optimize = false; 40 41 boolean opaque = false; 42 43 boolean exposeProxy = false; 44 45 private boolean frozen = false; 46 47 48 60 public void setProxyTargetClass(boolean proxyTargetClass) { 61 this.proxyTargetClass = proxyTargetClass; 62 } 63 64 67 public boolean isProxyTargetClass() { 68 return this.proxyTargetClass; 69 } 70 71 82 public void setOptimize(boolean optimize) { 83 this.optimize = optimize; 84 } 85 86 89 public boolean isOptimize() { 90 return this.optimize; 91 } 92 93 99 public void setOpaque(boolean opaque) { 100 this.opaque = opaque; 101 } 102 103 107 public boolean isOpaque() { 108 return this.opaque; 109 } 110 111 118 public void setExposeProxy(boolean exposeProxy) { 119 this.exposeProxy = exposeProxy; 120 } 121 122 126 public boolean isExposeProxy() { 127 return this.exposeProxy; 128 } 129 130 136 public void setFrozen(boolean frozen) { 137 this.frozen = frozen; 138 } 139 140 143 public boolean isFrozen() { 144 return this.frozen; 145 } 146 147 148 152 public void copyFrom(ProxyConfig other) { 153 Assert.notNull(other, "Other ProxyConfig object must not be null"); 154 this.proxyTargetClass = other.proxyTargetClass; 155 this.optimize = other.optimize; 156 this.exposeProxy = other.exposeProxy; 157 this.frozen = other.frozen; 158 this.opaque = other.opaque; 159 } 160 161 public String toString() { 162 StringBuffer sb = new StringBuffer (); 163 sb.append("proxyTargetClass=").append(this.proxyTargetClass).append("; "); 164 sb.append("optimize=").append(this.optimize).append("; "); 165 sb.append("opaque=").append(this.opaque).append("; "); 166 sb.append("exposeProxy=").append(this.exposeProxy).append("; "); 167 sb.append("frozen=").append(this.frozen); 168 return sb.toString(); 169 } 170 171 } 172 | Popular Tags |