@FunctionalInterface
public interface BeanContextConditional
Modifier and Type | Method and Description |
---|---|
default boolean |
isEnabled(BeanContext context)
Return whether this component is enabled for the given context.
|
boolean |
isEnabled(BeanContext context,
BeanResolutionContext resolutionContext)
Return whether this component is enabled for the given context.
|
default boolean isEnabled(@NonNull BeanContext context)
context
- The contextboolean isEnabled(@NonNull BeanContext context, @Nullable BeanResolutionContext resolutionContext)
context
- The contextresolutionContext
- The bean resolution context