类 ThrowsAdviceAdapter

java.lang.Object
infra.aop.framework.adapter.ThrowsAdviceAdapter
所有已实现的接口:
AdvisorAdapter, Serializable

class ThrowsAdviceAdapter extends Object implements AdvisorAdapter, Serializable
Adapter to enable ThrowsAdvice to be used in the AOP framework.
作者:
Rod Johnson, Juergen Hoeller
  • 构造器详细资料

    • ThrowsAdviceAdapter

      ThrowsAdviceAdapter()
  • 方法详细资料

    • supportsAdvice

      public boolean supportsAdvice(Advice advice)
      从接口复制的说明: AdvisorAdapter
      Does this adapter understand this advice object? Is it valid to invoke the getInterceptors method with an Advisor that contains this advice as an argument?
      指定者:
      supportsAdvice 在接口中 AdvisorAdapter
      参数:
      advice - an Advice such as a BeforeAdvice
      返回:
      whether this adapter understands the given advice object
      另请参阅:
    • getInterceptor

      public MethodInterceptor getInterceptor(Advisor advisor)
      从接口复制的说明: AdvisorAdapter
      Return an AOP Alliance MethodInterceptor exposing the behavior of the given advice to an interception-based AOP framework.

      Don't worry about any Pointcut contained in the Advisor; the AOP framework will take care of checking the pointcut.

      指定者:
      getInterceptor 在接口中 AdvisorAdapter
      参数:
      advisor - the Advisor. The supportsAdvice() method must have returned true on this object
      返回:
      an AOP Alliance interceptor for this Advisor. There's no need to cache instances for efficiency, as the AOP framework caches advice chains.