# 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。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.shiker.tech/spring-he-xin-gong-neng/6.-spring-aop-api/6.10.-ding-yi-xin-de-qie-mian-lei-xing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
