Class Java21Condition

java.lang.Object
com.netflix.graphql.dgs.conditionals.Java21Condition
All Implemented Interfaces:
org.springframework.context.annotation.Condition

public class Java21Condition extends Object implements org.springframework.context.annotation.Condition
Condition used in @ConditionalOnJava21. Always returns false for the main implementation, but is re-implemented for JDK 21 only using the multi-release JAR feature.
  • Constructor Details

    • Java21Condition

      public Java21Condition()
  • Method Details

    • matches

      public boolean matches(@NotNull @NotNull org.springframework.context.annotation.ConditionContext context, @NotNull @NotNull org.springframework.core.type.AnnotatedTypeMetadata metadata)
      Specified by:
      matches in interface org.springframework.context.annotation.Condition