T
- The typepublic interface ConditionContext<T extends AnnotationMetadataProvider>
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() |
T |
getComponent()
The component for which the condition is being evaluated.
|
default List<Failure> |
getFailures() |
default boolean |
isFailing() |
T getComponent()
BeanDefinition
or a BeanConfiguration
BeanContext getBeanContext()
ConditionContext<T> fail(@Nonnull Failure failure)
failure
- The failureConditionContext
default ConditionContext<T> fail(@Nonnull String failure)
failure
- The failureConditionContext
default boolean isFailing()