Conditional annotations.
| Modifier and Type | Class and Description |
|---|---|
| private static class | ConditionEvaluator.
Implementation of a |
| Modifier and Type | Field and Description |
|---|---|
| private final ConditionEvaluator. |
| Access | Constructor and Description |
|---|---|
| public | ConditionEvaluator(BeanDefinitionRegistry registry, Environment environment, ResourceLoader resourceLoader)
Create a new |
| Modifier and Type | Method and Description |
|---|---|
| private Condition | |
| private List | |
| public boolean | Returns: if the item should be skippedthe meta data metadata)Determine if an item should be skipped based on |
| public boolean | Returns: if the item should be skippedthe meta data metadata, ConfigurationCondition.the phase of the call phaseDetermine if an item should be skipped based on |
| context | back to summary |
|---|---|
| private final ConditionEvaluator. | |
| ConditionEvaluator | back to summary |
|---|---|
| public ConditionEvaluator(BeanDefinitionRegistry registry, Environment environment, ResourceLoader resourceLoader) Create a new | |
| getCondition | back to summary |
|---|---|
| private Condition getCondition(String conditionClassName, ClassLoader classloader) | |
| getConditionClasses | back to summary |
|---|---|
private List
| |
| shouldSkip | back to summary |
|---|---|
| public boolean shouldSkip(AnnotatedTypeMetadata metadata) Determine if an item should be skipped based on
| |
| shouldSkip | back to summary |
|---|---|
| public boolean shouldSkip(AnnotatedTypeMetadata metadata, ConfigurationCondition. Determine if an item should be skipped based on
| |
ConditionContext.
| Modifier and Type | Field and Description |
|---|---|
| private final ConfigurableListableBeanFactory | |
| private final ClassLoader | |
| private final Environment | |
| private final BeanDefinitionRegistry | |
| private final ResourceLoader |
| Access | Constructor and Description |
|---|---|
| public | ConditionContextImpl(BeanDefinitionRegistry registry, Environment environment, ResourceLoader resourceLoader)
|
| Modifier and Type | Method and Description |
|---|---|
| private static ConfigurableListableBeanFactory | |
| private static ClassLoader | |
| private static Environment | |
| private static ResourceLoader | |
| public ConfigurableListableBeanFactory | getBeanFactory()
Implements org. Return the |
| public ClassLoader | getClassLoader()
Implements org. Return the |
| public Environment | getEnvironment()
Implements org. Return the |
| public BeanDefinitionRegistry | getRegistry()
Implements org. Return the |
| public ResourceLoader | getResourceLoader()
Implements org. Return the |
| beanFactory | back to summary |
|---|---|
| private final ConfigurableListableBeanFactory beanFactory
| |
| classLoader | back to summary |
|---|---|
| private final ClassLoader classLoader
| |
| environment | back to summary |
|---|---|
| private final Environment environment | |
| registry | back to summary |
|---|---|
| private final BeanDefinitionRegistry registry
| |
| resourceLoader | back to summary |
|---|---|
| private final ResourceLoader resourceLoader | |
| ConditionContextImpl | back to summary |
|---|---|
| public ConditionContextImpl(BeanDefinitionRegistry registry, Environment environment, ResourceLoader resourceLoader) | |
| deduceBeanFactory | back to summary |
|---|---|
private static ConfigurableListableBeanFactory deduceBeanFactory(BeanDefinitionRegistry source)
| |
| deduceClassLoader | back to summary |
|---|---|
private static ClassLoader deduceClassLoader(ResourceLoader resourceLoader, ConfigurableListableBeanFactory beanFactory)
| |
| deduceEnvironment | back to summary |
|---|---|
| private static Environment deduceEnvironment(BeanDefinitionRegistry source) | |
| deduceResourceLoader | back to summary |
|---|---|
| private static ResourceLoader deduceResourceLoader(BeanDefinitionRegistry source) | |
| getBeanFactory | back to summary |
|---|---|
| public ConfigurableListableBeanFactory getBeanFactory() Implements org. Doc from org. Return the | |
| getClassLoader | back to summary |
|---|---|
| public ClassLoader getClassLoader() Implements org. Doc from org. Return the | |
| getEnvironment | back to summary |
|---|---|
| public Environment getEnvironment() Implements org. Doc from org. Return the
| |
| getRegistry | back to summary |
|---|---|
| public BeanDefinitionRegistry getRegistry() Implements org. Doc from org. Return the
| |
| getResourceLoader | back to summary |
|---|---|
| public ResourceLoader getResourceLoader() Implements org. Doc from org. Return the
| |