Interface BeanContextConditional

All Known Subinterfaces:
AdvisedBeanType<T>, BeanConfiguration, BeanDefinition<T>, BeanDefinitionReference<T>, BeanType<T>, DelegatingBeanDefinition<T>, DisposableBeanDefinition<T>, InitializingBeanDefinition<T>, ProxyBeanDefinition<T>, QualifiedBeanType<T>, RuntimeBeanDefinition<T>, ValidatedBeanDefinition<T>
All Known Implementing Classes:
AbstractBeanConfiguration, AbstractBeanDefinition, AbstractBeanDefinitionReference, AbstractInitializableBeanDefinition, AbstractInitializableBeanDefinitionReference, AbstractParametrizedBeanDefinition, AbstractProviderDefinition, ApplicationEventPublisherFactory, ArgumentBeanType, BeanProviderDefinition, BeanRegistration, InterceptorRegistryBean, JakartaProviderBeanDefinition, JavaxProviderBeanDefinition
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface BeanContextConditional
Interface for other types that are conditional within a context.
Since:
1.0
Author:
graemerocher
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    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.
  • Method Details

    • isEnabled

      default boolean isEnabled(@NonNull BeanContext context)
      Return whether this component is enabled for the given context.
      Parameters:
      context - The context
      Returns:
      True if it is
    • isEnabled

      boolean isEnabled(@NonNull BeanContext context, @Nullable BeanResolutionContext resolutionContext)
      Return whether this component is enabled for the given context.
      Parameters:
      context - The context
      resolutionContext - The bean resolution context
      Returns:
      True if it is