private static class ConditionEvaluator.ConditionContextImpl extends java.lang.Object implements ConditionContext
ConditionContext
.Modifier and Type | Field and Description |
---|---|
private ConfigurableListableBeanFactory |
beanFactory |
private java.lang.ClassLoader |
classLoader |
private Environment |
environment |
private BeanDefinitionRegistry |
registry |
private ResourceLoader |
resourceLoader |
Constructor and Description |
---|
ConditionContextImpl(BeanDefinitionRegistry registry,
Environment environment,
ResourceLoader resourceLoader) |
Modifier and Type | Method and Description |
---|---|
private ConfigurableListableBeanFactory |
deduceBeanFactory(BeanDefinitionRegistry source) |
private java.lang.ClassLoader |
deduceClassLoader(ResourceLoader resourceLoader,
ConfigurableListableBeanFactory beanFactory) |
private Environment |
deduceEnvironment(BeanDefinitionRegistry source) |
private ResourceLoader |
deduceResourceLoader(BeanDefinitionRegistry source) |
ConfigurableListableBeanFactory |
getBeanFactory()
Return the
ConfigurableListableBeanFactory that will hold the bean
definition should the condition match. |
java.lang.ClassLoader |
getClassLoader()
Return the
ClassLoader that should be used to load additional classes. |
Environment |
getEnvironment()
Return the
Environment for which the current application is running. |
BeanDefinitionRegistry |
getRegistry()
Return the
BeanDefinitionRegistry that will hold the bean definition
should the condition match. |
ResourceLoader |
getResourceLoader()
Return the
ResourceLoader currently being used. |
@Nullable private final BeanDefinitionRegistry registry
@Nullable private final ConfigurableListableBeanFactory beanFactory
private final Environment environment
private final ResourceLoader resourceLoader
@Nullable private final java.lang.ClassLoader classLoader
public ConditionContextImpl(@Nullable BeanDefinitionRegistry registry, @Nullable Environment environment, @Nullable ResourceLoader resourceLoader)
@Nullable private ConfigurableListableBeanFactory deduceBeanFactory(@Nullable BeanDefinitionRegistry source)
private Environment deduceEnvironment(@Nullable BeanDefinitionRegistry source)
private ResourceLoader deduceResourceLoader(@Nullable BeanDefinitionRegistry source)
@Nullable private java.lang.ClassLoader deduceClassLoader(@Nullable ResourceLoader resourceLoader, @Nullable ConfigurableListableBeanFactory beanFactory)
public BeanDefinitionRegistry getRegistry()
ConditionContext
BeanDefinitionRegistry
that will hold the bean definition
should the condition match.getRegistry
in interface ConditionContext
public ConfigurableListableBeanFactory getBeanFactory()
ConditionContext
ConfigurableListableBeanFactory
that will hold the bean
definition should the condition match.getBeanFactory
in interface ConditionContext
public Environment getEnvironment()
ConditionContext
Environment
for which the current application is running.getEnvironment
in interface ConditionContext
public ResourceLoader getResourceLoader()
ConditionContext
ResourceLoader
currently being used.getResourceLoader
in interface ConditionContext
public java.lang.ClassLoader getClassLoader()
ConditionContext
ClassLoader
that should be used to load additional classes.getClassLoader
in interface ConditionContext