public interface ConditionContext
Conditions.| Modifier and Type | Method and Description |
|---|---|
ConfigurableListableBeanFactory |
getBeanFactory()
Returns the
ConfigurableListableBeanFactory that will hold the bean
definition should the condition match. |
java.lang.ClassLoader |
getClassLoader()
Returns the
ClassLoader that should be used to load additional classes
or null if the default classloader should be used. |
Environment |
getEnvironment()
Return the
Environment for which the current application is running or
null if no environment is available. |
BeanDefinitionRegistry |
getRegistry()
Returns the
BeanDefinitionRegistry that will hold the bean definition
should the condition match. |
ResourceLoader |
getResourceLoader()
Returns the
ResourceLoader currently being used or null if the
resource loader cannot be obtained. |
BeanDefinitionRegistry getRegistry()
BeanDefinitionRegistry that will hold the bean definition
should the condition match.null)Environment getEnvironment()
Environment for which the current application is running or
null if no environment is available.nullConfigurableListableBeanFactory getBeanFactory() throws java.lang.IllegalStateException
ConfigurableListableBeanFactory that will hold the bean
definition should the condition match. If a
ConfigurableListableBeanFactory is unavailable an
IllegalStateException will be thrown.java.lang.IllegalStateException - if the bean factory could not be obtainedResourceLoader getResourceLoader()
ResourceLoader currently being used or null if the
resource loader cannot be obtained.nulljava.lang.ClassLoader getClassLoader()
ClassLoader that should be used to load additional classes
or null if the default classloader should be used.null