|
|
|
@ -99,9 +99,10 @@ The three annotations introduced above build upon the `@BeanOverride` meta-annot |
|
|
|
and associated infrastructure, which allows to define custom bean overriding variants. |
|
|
|
and associated infrastructure, which allows to define custom bean overriding variants. |
|
|
|
|
|
|
|
|
|
|
|
In order to provide an extension, three classes are needed: |
|
|
|
In order to provide an extension, three classes are needed: |
|
|
|
- a concrete `BeanOverrideProcessor<P>` |
|
|
|
|
|
|
|
- a concrete `OverrideMetadata` created by said processor |
|
|
|
- A concrete `BeanOverrideProcessor<P>`. |
|
|
|
- an annotation meta-annotated with `@BeanOverride(P.class)` |
|
|
|
- A concrete `OverrideMetadata` created by said processor. |
|
|
|
|
|
|
|
- An annotation meta-annotated with `@BeanOverride(P.class)`. |
|
|
|
|
|
|
|
|
|
|
|
The Spring TestContext Framework includes infrastructure classes that support bean |
|
|
|
The Spring TestContext Framework includes infrastructure classes that support bean |
|
|
|
overriding: a `BeanPostProcessor`, a `TestExecutionListener` and a `ContextCustomizerFactory`. |
|
|
|
overriding: a `BeanPostProcessor`, a `TestExecutionListener` and a `ContextCustomizerFactory`. |
|
|
|
|