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 Advices and Advisors, but doesn't actually implement proxy creation methods, which are provided by subclasses.
This class is serializable; subclasses need not be.
This class is used to hold snapshots of proxies.
org.springframework.aop.framework.AopProxy
| Modifier and Type | Class and Description |
|---|---|
| private static class | AdvisedSupport.
Stub for an |
| private static class | AdvisedSupport.
Simple wrapper class around a Method. |
| Modifier and Type | Field and Description |
|---|---|
| private AdvisorChainFactory | advisorChainFactory
The AdvisorChainFactory to use. |
| private List | advisorKey
List of minimal |
| private List | advisors
List of Advisors. |
| private transient volatile List | cachedInterceptors
Cache with shared interceptors which are not method-specific. |
| public static final TargetSource | EMPTY_TARGET_SOURCE
Canonical TargetSource when there's no target, and behavior is supplied by the advisors. |
| private List | interfaces
Interfaces to be implemented by the proxy. |
| private transient Map | methodCache
Cache with Method as key and advisor chain List as value. |
| private boolean | preFiltered
Whether the Advisors are already filtered for the specific target class. |
| pack-priv transient volatile Object | proxyMetadataCache
Optional field for |
| private static final long | serialVersionUID
Hides org. |
| pack-priv TargetSource | targetSource
Package-protected to allow direct access for efficiency. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | AdvisedSupport(Class<?>...
the proxied interfaces interfaces)Create an |
| Modifier and Type | Method and Description |
|---|---|
| public void | addAdvice(Advice
the advice to add to the tail of the chain advice)Implements org. Add the given AOP Alliance advice to the tail of the advice (interceptor) chain. |
| public void | addAdvice(int
index from 0 (head) pos, Advice the advice to add at the specified position in the advice chain advice)Implements org. Cannot add introductions this way unless the advice implements IntroductionInfo. |
| public void | addAdvisor(Advisor
the advisor to add to the end of the chain advisor)Implements org. Add an advisor at the end of the advisor chain. |
| public void | addAdvisor(int
position in chain (0 is head). Must be valid. pos, Advisor the advisor to add at the specified position in the chain advisor)Implements org. Add an Advisor at the specified position in the chain. |
| private void | |
| public void | addAdvisors(Advisor...
the advisors to register advisors)Add all the given advisors to this proxy configuration. |
| public void | addAdvisors(Collection<Advisor>
the advisors to register advisors)Add all the given advisors to this proxy configuration. |
| public void | |
| protected void | |
| public boolean | Returns: whether this advice instance is includedthe advice to check inclusion of advice)Is the given advice included in any advisor within this proxy configuration? |
| protected void | copyConfigurationFrom(AdvisedSupport
the AdvisedSupport object to copy configuration from other)Call this method on a new instance created by the no-arg constructor to create an independent copy of the configuration from the given object. |
| protected void | copyConfigurationFrom(AdvisedSupport
the other, TargetSource AdvisedSupport object to take proxy configuration fromthe new TargetSource targetSource, List<Advisor> the Advisors for the chain advisors)Copy the AOP configuration from the given |
| public int | Returns: the count of the interceptors of this class or subclassesthe advice class to check adviceClass)Count advices of the given class. |
| public AdvisorChainFactory | |
| public int | getAdvisorCount()
Overrides default org. Return the number of advisors applying to this proxy. |
| pack-priv Object | |
| public final Advisor[] | getAdvisors()
Implements org. Return the advisors applying to this proxy. |
| protected final List | |
| pack-priv AdvisedSupport | getConfigurationOnlyCopy()
Build a configuration-only copy of this |
| public List | Returns: a List of MethodInterceptors (may also include InterceptorAndDynamicMethodMatchers)the proxied method method, Class<?> the target class targetClass)Determine a list of |
| public Class | getProxiedInterfaces()
Implements org. Return the interfaces proxied by the AOP proxy. |
| public Class | getTargetClass()
Implements org. Return the target class behind the implementing object (typically a proxy configuration or an actual proxy). |
| public TargetSource | getTargetSource()
Implements org. Return the |
| public int | indexOf(Advisor
the advisor to search for advisor)Implements org. Return the index (from 0) of the given advisor, or -1 if no such advisor applies to this proxy. |
| public int | indexOf(Advice
the AOP Alliance advice to search for advice)Implements org. Return the index (from 0) of the given AOP Alliance Advice, or -1 if no such advice is an advice for this proxy. |
| public boolean | isInterfaceProxied(Class<?>
the interface to check intf)Implements org. Determine whether the given interface is proxied. |
| public boolean | isPreFiltered()
Implements org. Return whether this proxy configuration is pre-filtered so that it only contains applicable advisors (matching this proxy's target class). |
| private void | |
| pack-priv void | |
| public boolean | removeAdvice(Advice
the advice to remove advice)Implements org. Remove the Advisor containing the given advice. |
| public boolean | removeAdvisor(Advisor
the advisor to remove advisor)Implements org. Remove the given advisor. |
| public void | removeAdvisor(int
the index of advisor to remove index)Implements org. Remove the advisor at the given index. |
| public boolean | Returns: true if the interface was removed; false
if the interface was not found and hence could not be removedthe interface to remove from the proxy intf)Remove a proxied interface. |
| public boolean | replaceAdvisor(Advisor
the advisor to replace a, Advisor the advisor to replace it with b)Implements org. Replace the given advisor. |
| public void | setAdvisorChainFactory(AdvisorChainFactory advisorChainFactory)
Set the advisor chain factory to use. |
| public void | |
| public void | setPreFiltered(boolean preFiltered)
Implements org. Set whether this proxy configuration is pre-filtered so that it only contains applicable advisors (matching this proxy's target class). |
| public void | |
| public void | setTargetClass(Class<?> targetClass)
Set a target class to be proxied, indicating that the proxy should be castable to the given class. |
| public void | setTargetSource(TargetSource
new TargetSource to use targetSource)Implements org. Change the |
| public String | toProxyConfigString()
Implements org. As |
| public String | toString()
Overrides org. For debugging/diagnostic use. |
| private void |