Class ChangeSpringPropertyKey

java.lang.Object
org.openrewrite.Recipe
org.openrewrite.java.spring.ChangeSpringPropertyKey
All Implemented Interfaces:
Cloneable

public class ChangeSpringPropertyKey extends org.openrewrite.Recipe
This composite recipe will change a spring application property key across YAML and properties files.

TODO: Add a java visitor to this recipe that will change property keys in @Value, @PropertySource and @TestPropertySource

  • Field Summary

    Fields inherited from class org.openrewrite.Recipe

    NOOP, PANIC
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    protected List<org.openrewrite.SourceFile>
    visit(List<org.openrewrite.SourceFile> before, org.openrewrite.ExecutionContext ctx)
     

    Methods inherited from class org.openrewrite.Recipe

    addApplicableTest, addApplicableTest, addDataTable, addSingleSourceApplicableTest, addSingleSourceApplicableTest, causesAnotherCycle, clone, doNext, equals, getApplicableTest, getApplicableTests, getDataTableDescriptors, getDescriptor, getEstimatedEffortPerOccurrence, getJacksonPolymorphicTypeTag, getLanguages, getMaintainers, getName, getRecipeList, getSingleSourceApplicableTest, getSingleSourceApplicableTests, getTags, getVisitor, hashCode, noop, run, run, run, run, validate, validate, validateAll, validateAll

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ChangeSpringPropertyKey

      public ChangeSpringPropertyKey()
  • Method Details

    • getDisplayName

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

      public String getDescription()
      Overrides:
      getDescription in class org.openrewrite.Recipe
    • visit

      protected List<org.openrewrite.SourceFile> visit(List<org.openrewrite.SourceFile> before, org.openrewrite.ExecutionContext ctx)
      Overrides:
      visit in class org.openrewrite.Recipe