Skip to content

Commit

Permalink
Document that failure analyzers should use constructor injection
Browse files Browse the repository at this point in the history
Closes gh-39099
  • Loading branch information
wilkinsona committed Jan 11, 2024
1 parent c1495bc commit f4ff2e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The following example registers `ProjectConstraintViolationFailureAnalyzer`:
com.example.ProjectConstraintViolationFailureAnalyzer
----

NOTE: If you need access to the `BeanFactory` or the `Environment`, your `FailureAnalyzer` can implement `BeanFactoryAware` or `EnvironmentAware` respectively.
NOTE: If you need access to the `BeanFactory` or the `Environment`, declare them as constructor arguments in your `FailureAnalyzer` implementation.



Expand Down

0 comments on commit f4ff2e6

Please sign in to comment.