public interface ConditionContext
Conditions.| Modifier and Type | Method and Description | 
|---|---|
| org.springframework.beans.factory.config.ConfigurableListableBeanFactory | getBeanFactory()Return the  ConfigurableListableBeanFactorythat will hold the bean
 definition should the condition match, ornullif the bean factory is
 not available (or not downcastable toConfigurableListableBeanFactory). | 
| ClassLoader | getClassLoader()Return the  ClassLoaderthat should be used to load additional classes
 (onlynullif even the system ClassLoader isn't accessible). | 
| org.springframework.core.env.Environment | getEnvironment()Return the  Environmentfor which the current application is running. | 
| org.springframework.beans.factory.support.BeanDefinitionRegistry | getRegistry()Return the  BeanDefinitionRegistrythat will hold the bean definition
 should the condition match. | 
| org.springframework.core.io.ResourceLoader | getResourceLoader()Return the  ResourceLoadercurrently being used. | 
org.springframework.beans.factory.support.BeanDefinitionRegistry getRegistry()
BeanDefinitionRegistry that will hold the bean definition
 should the condition match.IllegalStateException - if no registry is available (which is unusual:
 only the case with a plain ClassPathScanningCandidateComponentProvider)@Nullable org.springframework.beans.factory.config.ConfigurableListableBeanFactory getBeanFactory()
ConfigurableListableBeanFactory that will hold the bean
 definition should the condition match, or null if the bean factory is
 not available (or not downcastable to ConfigurableListableBeanFactory).org.springframework.core.env.Environment getEnvironment()
Environment for which the current application is running.org.springframework.core.io.ResourceLoader getResourceLoader()
ResourceLoader currently being used.@Nullable ClassLoader getClassLoader()
ClassLoader that should be used to load additional classes
 (only null if even the system ClassLoader isn't accessible).ClassUtils.forName(String, ClassLoader)