Any AOP proxy obtained from Spring can be cast to this interface to allow manipulation of its AOP advice.
org.springframework.aop.framework.AdvisedSupport
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | addAdvisor(Advisor
the advisor to add to the end of the chain advisor)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)Add an Advisor at the specified position in the chain. |
| public default int | |
| public Advisor[] | Returns: a list of Advisors applying to this proxy (nevernull)Return the advisors applying to this proxy. |
| public Class | |
| public TargetSource | |
| public int | |
| public int | |
| public boolean | |
| public boolean | isFrozen()
Return whether the Advised configuration is frozen, in which case no advice changes can be made. |
| public boolean | isInterfaceProxied(Class<?>
the interface to check intf)Determine whether the given interface is proxied. |
| public boolean | isPreFiltered()
Return whether this proxy configuration is pre-filtered so that it only contains applicable advisors (matching this proxy's target class). |
| public boolean | |
| public boolean | Returns: true of the advice was found and removed;
false if there was no such advicethe advice to remove advice)Remove the Advisor containing the given advice. |
| public boolean | Returns: true if the advisor was removed; false
if the advisor was not found and hence could not be removedthe advisor to remove advisor)Remove the given advisor. |
| public void | |
| public boolean | Returns: whether it was replaced. If the advisor wasn't found in the list of advisors, this method returnsfalse and does nothing.the advisor to replace a, Advisor the advisor to replace it with b)Replace the given advisor. |
| public void | setExposeProxy(boolean exposeProxy)
Set whether the proxy should be exposed by the AOP framework as a
|
| public void | setPreFiltered(boolean preFiltered)
Set whether this proxy configuration is pre-filtered so that it only contains applicable advisors (matching this proxy's target class). |
| public void | setTargetSource(TargetSource
new TargetSource to use targetSource)Change the |
| public String | Returns: a string description of the proxy configurationAs |
| addAdvice | back to summary |
|---|---|
| public void addAdvice(Advice advice) throws AopConfigException Add the given AOP Alliance advice to the tail of the advice (interceptor) chain. This will be wrapped in a DefaultPointcutAdvisor with a pointcut that always
applies, and returned from the Note that the given advice will apply to all invocations on the proxy,
even to the
| |
| addAdvice | back to summary |
|---|---|
| public void addAdvice(int pos, Advice advice) throws AopConfigException Add the given AOP Alliance Advice at the specified position in the advice chain. This will be wrapped in a Note The given advice will apply to all invocations on the proxy,
even to the
| |
| addAdvisor | back to summary |
|---|---|
| public void addAdvisor(Advisor advisor) throws AopConfigException Add an advisor at the end of the advisor chain. The Advisor may be an
| |
| addAdvisor | back to summary |
|---|---|
| public void addAdvisor(int pos, Advisor advisor) throws AopConfigException Add an Advisor at the specified position in the chain.
| |
| getAdvisorCount | back to summary |
|---|---|
| public default int getAdvisorCount() Return the number of advisors applying to this proxy. The default implementation delegates to
| |
| getAdvisors | back to summary |
|---|---|
| public Advisor[] getAdvisors() Return the advisors applying to this proxy.
| |
| getProxiedInterfaces | back to summary |
|---|---|
| public Class Return the interfaces proxied by the AOP proxy. Will not include the target class, which may also be proxied. | |
| getTargetSource | back to summary |
|---|---|
| public TargetSource getTargetSource() Return the | |
| indexOf | back to summary |
|---|---|
| public int indexOf(Advisor advisor) Return the index (from 0) of the given advisor, or -1 if no such advisor applies to this proxy. The return value of this method can be used to index into the advisors array.
| |
| indexOf | back to summary |
|---|---|
| public int indexOf(Advice advice) Return the index (from 0) of the given AOP Alliance Advice, or -1 if no such advice is an advice for this proxy. The return value of this method can be used to index into the advisors array.
| |
| isExposeProxy | back to summary |
|---|---|
| public boolean isExposeProxy() Return whether the factory should expose the proxy as a It can be necessary to expose the proxy if an advised object needs
to invoke a method on itself with advice applied. Otherwise, if an
advised object invokes a method on Getting the proxy is analogous to an EJB calling
| |
| isFrozen | back to summary |
|---|---|
| public boolean isFrozen() Return whether the Advised configuration is frozen, in which case no advice changes can be made. | |
| isInterfaceProxied | back to summary |
|---|---|
| public boolean isInterfaceProxied(Class<?> intf) Determine whether the given interface is proxied.
| |
| isPreFiltered | back to summary |
|---|---|
| public boolean isPreFiltered() Return whether this proxy configuration is pre-filtered so that it only contains applicable advisors (matching this proxy's target class). | |
| isProxyTargetClass | back to summary |
|---|---|
| public boolean isProxyTargetClass() Are we proxying the full target class instead of specified interfaces? | |
| removeAdvice | back to summary |
|---|---|
| public boolean removeAdvice(Advice advice) Remove the Advisor containing the given advice.
| |
| removeAdvisor | back to summary |
|---|---|
| public boolean removeAdvisor(Advisor advisor) Remove the given advisor.
| |
| removeAdvisor | back to summary |
|---|---|
| public void removeAdvisor(int index) throws AopConfigException Remove the advisor at the given index.
| |
| replaceAdvisor | back to summary |
|---|---|
| public boolean replaceAdvisor(Advisor a, Advisor b) throws AopConfigException Replace the given advisor. Note If the advisor is an
| |
| setExposeProxy | back to summary |
|---|---|
| public void setExposeProxy(boolean exposeProxy) Set whether the proxy should be exposed by the AOP framework as a
It can be necessary to expose the proxy if an advised object needs
to invoke a method on itself with advice applied. Otherwise, if an
advised object invokes a method on Default is | |
| setPreFiltered | back to summary |
|---|---|
| public void setPreFiltered(boolean preFiltered) Set whether this proxy configuration is pre-filtered so that it only contains applicable advisors (matching this proxy's target class). Default is "false". Set this to "true" if the advisors have been pre-filtered already, meaning that the ClassFilter check can be skipped when building the actual advisor chain for proxy invocations.
| |
| setTargetSource | back to summary |
|---|---|
| public void setTargetSource(TargetSource targetSource) Change the Only works if the configuration isn't frozen.
| |
| toProxyConfigString | back to summary |
|---|---|
| public String toProxyConfigString() As
| |