The docs currently state that "if you need access to the BeanFactory or the Environment, your FailureAnalyzer can implement BeanFactoryAware or EnvironmentAware respectively". While this works, support has been deprecated and constructor injection should be used instead.