1 16 17 package org.springframework.aop.framework; 18 19 import org.aopalliance.aop.Advice; 20 21 import org.springframework.aop.Advisor; 22 import org.springframework.aop.TargetClassAware; 23 import org.springframework.aop.TargetSource; 24 25 38 public interface Advised extends TargetClassAware { 39 40 44 boolean isFrozen(); 45 46 49 boolean isProxyTargetClass(); 50 51 55 Class [] getProxiedInterfaces(); 56 57 61 boolean isInterfaceProxied(Class intf); 62 63 64 69 void setTargetSource(TargetSource targetSource); 70 71 74 TargetSource getTargetSource(); 75 76 83 void setExposeProxy(boolean exposeProxy); 84 85 92 boolean isExposeProxy(); 93 94 95 99 Advisor[] getAdvisors(); 100 101 109 void addAdvisor(Advisor advisor) throws AopConfigException; 110 111 117 void addAdvisor(int pos, Advisor advisor) throws AopConfigException; 118 119 125 boolean removeAdvisor(Advisor advisor); 126 127 132 void removeAdvisor(int index) throws AopConfigException; 133 134 141 int indexOf(Advisor advisor); 142 143 155 boolean replaceAdvisor(Advisor a, Advisor b) throws AopConfigException; 156 157 158 170 void addAdvice(Advice advice) throws AopConfigException; 171 172 184 void addAdvice(int pos, Advice advice) throws AopConfigException; 185 186 192 boolean removeAdvice(Advice advice); 193 194 202 int indexOf(Advice advice); 203 204 205 210 String toProxyConfigString(); 211 212 } 213 | Popular Tags |