> For the complete documentation index, see [llms.txt](https://doc.shiker.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.shiker.tech/spring-he-xin-gong-neng/6.-spring-aop-api/6.10.-ding-yi-xin-de-qie-mian-lei-xing.md).

# 6.10. 定义新的切面类型

Spring AOP 被设计为可扩展的。虽然目前在内部使用了拦截实现策略，但除了在通知周围、之前、抛出通知和返回通知之后的拦截之外，还可以支持任意通知类型。

`org.springframework.aop.framework.adapter`包是一个 SPI 包，它允许在不更改核心框架的情况下添加对新的自定义切面类型的支持。自定义类型的唯一约束`Advice`是它必须实现 `org.aopalliance.aop.Advice`标记接口。

有关详细信息，请参阅[`org.springframework.aop.framework.adapter`](https://docs.spring.io/spring-framework/docs/5.3.22/javadoc-api/org/springframework/aop/framework/adapter/package-frame.html) javadoc。
