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(java.lang.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 java.util.List<Failure> |
getFailures() |
default boolean |
isFailing() |
findBean, findBean, findOrInstantiateBean, getBean, getBean, getBean, getBeansOfType, getBeansOfType, getProxyTargetBean, 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 java.lang.String failure)
failure
- The failureConditionContext
default java.util.List<Failure> getFailures()
default boolean isFailing()