Class OnEnabledComponent<T>

java.lang.Object
org.springframework.boot.autoconfigure.condition.SpringBootCondition
org.springframework.cloud.gateway.config.conditional.OnEnabledComponent<T>
All Implemented Interfaces:
org.springframework.context.annotation.Condition, org.springframework.context.annotation.ConfigurationCondition
Direct Known Subclasses:
OnEnabledFilter, OnEnabledGlobalFilter, OnEnabledPredicate

public abstract class OnEnabledComponent<T> extends org.springframework.boot.autoconfigure.condition.SpringBootCondition implements org.springframework.context.annotation.ConfigurationCondition
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.context.annotation.ConfigurationCondition

    org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract Class<?>
     
    protected abstract Class<? extends T>
     
    protected Class<? extends T>
    getComponentType(Class<?> annotationClass, org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
     
    org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase
     
    org.springframework.boot.autoconfigure.condition.ConditionOutcome
    getMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
     
    protected abstract String
    normalizeComponentName(Class<? extends T> componentClass)
     

    Methods inherited from class org.springframework.boot.autoconfigure.condition.SpringBootCondition

    anyMatches, logOutcome, matches, matches

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.context.annotation.Condition

    matches
  • Constructor Details

    • OnEnabledComponent

      public OnEnabledComponent()
  • Method Details

    • getConfigurationPhase

      public org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase getConfigurationPhase()
      Specified by:
      getConfigurationPhase in interface org.springframework.context.annotation.ConfigurationCondition
    • getMatchOutcome

      public org.springframework.boot.autoconfigure.condition.ConditionOutcome getMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
      Specified by:
      getMatchOutcome in class org.springframework.boot.autoconfigure.condition.SpringBootCondition
    • getComponentType

      protected Class<? extends T> getComponentType(Class<?> annotationClass, org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
    • normalizeComponentName

      protected abstract String normalizeComponentName(Class<? extends T> componentClass)
    • annotationClass

      protected abstract Class<?> annotationClass()
    • defaultValueClass

      protected abstract Class<? extends T> defaultValueClass()