Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 788 Bytes

File metadata and controls

16 lines (13 loc) · 788 Bytes

Defining New Advice Types

Spring AOP is designed to be extensible. While the interception implementation strategy is presently used internally, it is possible to support arbitrary advice types in addition to the interception around advice, before, throws advice, and after returning advice.

The org.springframework.aop.framework.adapter package is an SPI package that lets support for new custom advice types be added without changing the core framework. The only constraint on a custom Advice type is that it must implement the org.aopalliance.aop.Advice marker interface.

See the {spring-framework-api}/aop/framework/adapter/package-summary.html[org.springframework.aop.framework.adapter] javadoc for further information.