Top Description Constructors Methods
org.springframework.aop.framework.adapter

pack-priv Class ThrowsAdviceAdapter

extends Object
implements AdvisorAdapter, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.springframework.aop.framework.adapter.AdvisorAdapter
Annotations
@SuppressWarnings:serial
Imports
java.io.Serializable, org.aopalliance.aop.Advice, org.aopalliance.intercept.MethodInterceptor, org.springframework.aop.Advisor, .ThrowsAdvice

Adapter to enable org.springframework.aop.ThrowsAdvice to be used in the Spring AOP framework.
Authors
Rod Johnson, Juergen Hoeller

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public MethodInterceptor
getInterceptor(Advisor
the Advisor. The supportsAdvice() method must have returned true on this object
advisor
)

Implements org.springframework.aop.framework.adapter.AdvisorAdapter.getInterceptor.

Return an AOP Alliance MethodInterceptor exposing the behavior of the given advice to an interception-based AOP framework.

public boolean
supportsAdvice(Advice
an Advice such as a BeforeAdvice
advice
)

Implements org.springframework.aop.framework.adapter.AdvisorAdapter.supportsAdvice.

Does this adapter understand this advice object?

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ThrowsAdviceAdapterback to summary
pack-priv ThrowsAdviceAdapter()

Method Detail

getInterceptorback to summary
public MethodInterceptor getInterceptor(Advisor advisor)

Implements org.springframework.aop.framework.adapter.AdvisorAdapter.getInterceptor.

Doc from org.springframework.aop.framework.adapter.AdvisorAdapter.getInterceptor.

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.

Parameters
advisor:Advisor

the Advisor. The supportsAdvice() method must have returned true on this object

Returns:MethodInterceptor

an AOP Alliance interceptor for this Advisor. There's no need to cache instances for efficiency, as the AOP framework caches advice chains.

Annotations
@Override
supportsAdviceback to summary
public boolean supportsAdvice(Advice advice)

Implements org.springframework.aop.framework.adapter.AdvisorAdapter.supportsAdvice.

Doc from org.springframework.aop.framework.adapter.AdvisorAdapter.supportsAdvice.

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?

Parameters
advice:Advice

an Advice such as a BeforeAdvice

Returns:boolean

whether this adapter understands the given advice object

Annotations
@Override