Class ConditionalOnBeanAnyNestedCondition


  • public class ConditionalOnBeanAnyNestedCondition
    extends org.openrewrite.Recipe
    ConditionalOnBean semantic change

    As of SpringBoot 2.0 ConditionalOnBean uses a logical AND rather than an OR for candidate beans.

    @ConditionalOnBean({Aa.class, Bb.class}) SomeThing someThingBean(){...}

    is converted to: @ConditionalOnBean(ConditionAaOrBb.class) SomeThing someThingBean(){...}

    class ConditionAaOrBb extends AnyNestedCondition {...}

    • Field Summary

      • Fields inherited from class org.openrewrite.Recipe

        NOOP
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()  
      java.lang.String getDisplayName()  
      org.openrewrite.TreeVisitor<?,​org.openrewrite.ExecutionContext> getVisitor()  
      • Methods inherited from class org.openrewrite.Recipe

        doNext, equals, getApplicableTest, getDescriptor, getJacksonPolymorphicTypeTag, getLanguages, getName, getRecipeList, getTags, hashCode, run, run, run, run, validate, validate, validateAll, validateAll, visit
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConditionalOnBeanAnyNestedCondition

        public ConditionalOnBeanAnyNestedCondition()
    • Method Detail

      • getDisplayName

        public java.lang.String getDisplayName()
        Specified by:
        getDisplayName in class org.openrewrite.Recipe
      • getDescription

        public java.lang.String getDescription()
        Overrides:
        getDescription in class org.openrewrite.Recipe
      • getVisitor

        public org.openrewrite.TreeVisitor<?,​org.openrewrite.ExecutionContext> getVisitor()
        Overrides:
        getVisitor in class org.openrewrite.Recipe