Interface ConditionContext
public interface ConditionContext
Context information for use byConditions.- Since:
- 4.0
- Author:
- Phillip Webb, Juergen Hoeller
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConfigurableListableBeanFactorygetBeanFactory()Return theConfigurableListableBeanFactorythat will hold the bean definition should the condition match, ornullif the bean factory is not available.ClassLoadergetClassLoader()Return theClassLoaderthat should be used to load additional classes, ornullif the default classloader should be used.EnvironmentgetEnvironment()Return theEnvironmentfor which the current application is running, ornullif no environment is available.BeanDefinitionRegistrygetRegistry()Return theBeanDefinitionRegistrythat will hold the bean definition should the condition match, ornullif the registry is not available.ResourceLoadergetResourceLoader()Return theResourceLoadercurrently being used, ornullif the resource loader cannot be obtained.
Method Detail
getRegistry
BeanDefinitionRegistry getRegistry()
Return theBeanDefinitionRegistrythat will hold the bean definition should the condition match, ornullif the registry is not available.
getBeanFactory
ConfigurableListableBeanFactory getBeanFactory()
Return theConfigurableListableBeanFactorythat will hold the bean definition should the condition match, ornullif the bean factory is not available.
getEnvironment
Environment getEnvironment()
Return theEnvironmentfor which the current application is running, ornullif no environment is available.
getResourceLoader
ResourceLoader getResourceLoader()
Return theResourceLoadercurrently being used, ornullif the resource loader cannot be obtained.
getClassLoader
ClassLoader getClassLoader()
Return theClassLoaderthat should be used to load additional classes, ornullif the default classloader should be used.