Interface ConditionContext
public interface ConditionContext
Context information for use byCondition
s.- Since:
- 4.0
- Author:
- Phillip Webb, Juergen Hoeller
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConfigurableListableBeanFactory
getBeanFactory()
Return theConfigurableListableBeanFactory
that will hold the bean definition should the condition match, ornull
if the bean factory is not available.ClassLoader
getClassLoader()
Return theClassLoader
that should be used to load additional classes, ornull
if the default classloader should be used.Environment
getEnvironment()
Return theEnvironment
for which the current application is running, ornull
if no environment is available.BeanDefinitionRegistry
getRegistry()
Return theBeanDefinitionRegistry
that will hold the bean definition should the condition match, ornull
if the registry is not available.ResourceLoader
getResourceLoader()
Return theResourceLoader
currently being used, ornull
if the resource loader cannot be obtained.
Method Detail
getRegistry
BeanDefinitionRegistry getRegistry()
Return theBeanDefinitionRegistry
that will hold the bean definition should the condition match, ornull
if the registry is not available.
getBeanFactory
ConfigurableListableBeanFactory getBeanFactory()
Return theConfigurableListableBeanFactory
that will hold the bean definition should the condition match, ornull
if the bean factory is not available.
getEnvironment
Environment getEnvironment()
Return theEnvironment
for which the current application is running, ornull
if no environment is available.
getResourceLoader
ResourceLoader getResourceLoader()
Return theResourceLoader
currently being used, ornull
if the resource loader cannot be obtained.
getClassLoader
ClassLoader getClassLoader()
Return theClassLoader
that should be used to load additional classes, ornull
if the default classloader should be used.