T
- The typepublic interface ConditionContext<T extends AnnotationMetadataProvider> extends BeanLocator, PropertyResolver
Condition
.Modifier and Type | Method and Description |
---|---|
ConditionContext<T> |
fail(Failure failure)
Fail the condition with the given message.
|
default ConditionContext<T> |
fail(String failure)
Fail the condition with the given message.
|
BeanContext |
getBeanContext() |
BeanResolutionContext |
getBeanResolutionContext() |
T |
getComponent()
The component for which the condition is being evaluated.
|
default List<Failure> |
getFailures() |
default boolean |
isFailing() |
findBean, findBean, findBean, findBean, findOrInstantiateBean, getBean, getBean, getBean, getBean, getBean, getBeansOfType, getBeansOfType, getBeansOfType, getBeansOfType, getProxyTargetBean, getProxyTargetBean, streamOfType, streamOfType, streamOfType, streamOfType
containsProperties, containsProperty, get, getProperties, getProperties, getProperty, getProperty, getProperty, getProperty, getProperty, getPropertyEntries, getRequiredProperty, nameOf
get, get, get
T getComponent()
BeanDefinition
or a BeanConfiguration
BeanContext getBeanContext()
BeanResolutionContext getBeanResolutionContext()
ConditionContext<T> fail(@NonNull Failure failure)
failure
- The failureConditionContext
default ConditionContext<T> fail(@NonNull String failure)
failure
- The failureConditionContext
default boolean isFailing()