| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.springframework.aop.framework.ProxyConfig | +--org.springframework.aop.framework.AdvisedSupport
Superclass for AOP Proxy configuration managers. These are not themselves AOP proxies, but subclasses of this class are normally factories from which AOP proxy instances are obtained directly.
This class frees subclasses of the housekeeping of Interceptors and Advisors, but doesn't actually implement proxy creation methods, which are provided by subclasses.
| Field Summary | |
static TargetSource | EMPTY_TARGET_SOURCECanonical TargetSource when there's no target, and behaviour is supplied by the advisors. |
| Constructor Summary | |
AdvisedSupport()No arg constructor to allow use as a Java bean. | |
AdvisedSupport(Class[] interfaces)Create a DefaultProxyConfig with the given parameters. | |
| Method Summary | |
void | addAdvisor(int pos, IntroductionAdvisor advisor) |
void | addAdvisor(int pos, Advisor advisor) |
void | addAdvisor(Advisor advice) |
void | addBeforeAdvice(MethodBeforeAdvice ba) |
void | addInterceptor(Interceptor interceptor) |
void | addInterceptor(int pos, Interceptor interceptor)Cannot add IntroductionInterceptors this way. |
void | addInterface(Class newInterface)Add a new proxied interface. |
void | addListener(AdvisedSupportListener l) |
void | addThrowsAdvice(ThrowsAdvice throwsAdvice) |
final int | countInterceptorsOfType(Class interceptorClass)Count interceptors of the given class |
final AdvisorChainFactory | getAdvisorChainFactory()Return the AdvisorChainFactory associated with this ProxyConfig. |
final Advisor[] | getAdvisors() |
final MethodInvocationFactory | getMethodInvocationFactory() |
final Class[] | getProxiedInterfaces() |
final TargetSource | getTargetSource() |
int | indexOf(Interceptor interceptor)Return the index (from 0) of the given AOP Alliance interceptor, or -1 if no such interceptor is an advice for this proxy. |
int | indexOf(Advisor advisor)Return the index (from 0) of the given advisor, or -1 if no such advisor applies to this proxy. |
final boolean | interceptorIncluded(Interceptor mi)Is this interceptor included in any advisor? |
boolean | isInterfaceProxied(Class intf) |
final boolean | removeAdvisor(Advisor advisor) |
void | removeAdvisor(int index) |
final boolean | removeInterceptor(Interceptor interceptor)Convenience method to remove an interceptor |
boolean | removeInterface(Class intf)Remove a proxied interface. |
void | removeListener(AdvisedSupportListener l) |
final boolean | replaceAdvisor(Advisor a, Advisor b)Replace the given advisor. |
void | setAdvisorChainFactory(AdvisorChainFactory advisorChainFactory) |
void | setInterfaces(Class[] interfaces)Set the interfaces to be proxied. |
void | setMethodInvocationFactory(MethodInvocationFactory methodInvocationFactory) |
void | setTarget(Object target) |
void | setTargetSource(TargetSource ts) |
String | toProxyConfigString() |
String | toString()For debugging/diagnostic use. |
| Methods inherited from class org.springframework.aop.framework.ProxyConfig |
copyFrom, getExposeProxy, getOptimize, getProxyTargetClass, setExposeProxy, setOptimize, setProxyTargetClass |
| Field Detail |
public static TargetSource EMPTY_TARGET_SOURCE
| Constructor Detail |
public AdvisedSupport()
public AdvisedSupport(Class[] interfaces)
| Method Detail |
public void addAdvisor(int pos, IntroductionAdvisor advisor)
throws AopConfigException
public void addAdvisor(int pos, Advisor advisor)
public void addAdvisor(Advisor advice)
public void addBeforeAdvice(MethodBeforeAdvice ba)
public void addInterceptor(Interceptor interceptor)
public void addInterceptor(int pos, Interceptor interceptor)
public void addInterface(Class newInterface)
public void addListener(AdvisedSupportListener l)
public void addThrowsAdvice(ThrowsAdvice throwsAdvice)
public final int countInterceptorsOfType(Class interceptorClass)
public final AdvisorChainFactory getAdvisorChainFactory()
public final Advisor[] getAdvisors()
public final MethodInvocationFactory getMethodInvocationFactory()
public final Class[] getProxiedInterfaces()
public final TargetSource getTargetSource()
public int indexOf(Interceptor interceptor)
public int indexOf(Advisor advisor)
public final boolean interceptorIncluded(Interceptor mi)
public boolean isInterfaceProxied(Class intf)
public final boolean removeAdvisor(Advisor advisor)
public void removeAdvisor(int index)
throws AopConfigException
public final boolean removeInterceptor(Interceptor interceptor)
public boolean removeInterface(Class intf)
public void removeListener(AdvisedSupportListener l)
public final boolean replaceAdvisor(Advisor a, Advisor b)
public void setAdvisorChainFactory(AdvisorChainFactory advisorChainFactory)
public void setInterfaces(Class[] interfaces)
public void setMethodInvocationFactory(MethodInvocationFactory methodInvocationFactory)
public void setTarget(Object target)
public void setTargetSource(TargetSource ts)
public String toProxyConfigString()
public String toString()
| Association Links |
to Class java.util.List
to Class org.springframework.aop.Advisor
to Class java.util.Set
to Class org.springframework.aop.TargetSource
to Class org.springframework.aop.framework.MethodInvocationFactory
to Class java.util.LinkedList
to Class org.springframework.aop.framework.AdvisorChainFactory
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||