Allow to inject the Environment in FailureAnalyzer

Closes gh-11569
This commit is contained in:
Stephane Nicoll
2018-01-08 14:20:48 +01:00
parent 6a0dbc5ce0
commit 6daad1f562
4 changed files with 30 additions and 8 deletions

View File

@@ -48,6 +48,9 @@ The following example registers `ProjectConstraintViolationFailureAnalyzer`:
com.example.ProjectConstraintViolationFailureAnalyzer
----
NOTE: If you need access to the `BeanFactory` or the `Environment`, your `FailureAnalyzer`
can simply implement `BeanFactoryAware` or `EnvironmentAware` respectively.
[[howto-troubleshoot-auto-configuration]]