Package org.openrewrite.prethink.calm
Class GenerateCalmArchitecture
java.lang.Object
org.openrewrite.Recipe
org.openrewrite.ScanningRecipe<GenerateCalmArchitecture.Accumulator>
org.openrewrite.prethink.calm.GenerateCalmArchitecture
- All Implemented Interfaces:
Cloneable
public class GenerateCalmArchitecture
extends org.openrewrite.ScanningRecipe<GenerateCalmArchitecture.Accumulator>
Recipe that generates a FINOS CALM architecture JSON file from discovered
service endpoints, database connections, external service calls, and messaging connections.
This recipe reads from DATA_TABLES in its visitor phase, after all architectural discovery recipes have populated their data tables.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.openrewrite.Recipe
org.openrewrite.Recipe.Builder, org.openrewrite.Recipe.DelegatingRecipe -
Field Summary
Fields inherited from class org.openrewrite.Recipe
contributors, examples, PANIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCollection<org.openrewrite.SourceFile> generate(GenerateCalmArchitecture.Accumulator acc, org.openrewrite.ExecutionContext ctx) getInitialValue(org.openrewrite.ExecutionContext ctx) org.openrewrite.TreeVisitor<?, org.openrewrite.ExecutionContext> org.openrewrite.TreeVisitor<?, org.openrewrite.ExecutionContext> Methods inherited from class org.openrewrite.ScanningRecipe
clone, generate, getAccumulator, getVisitorMethods inherited from class org.openrewrite.Recipe
addDataTable, builder, buildRecipeList, createRecipeDescriptor, equals, getContributors, getDataTableDescriptors, getDescriptor, getEstimatedEffortPerOccurrence, getExamples, getInstanceName, getInstanceNameSuffix, getJacksonPolymorphicTypeTag, getMaintainers, getName, getRecipeList, getTags, hashCode, maxCycles, noop, onComplete, run, run, run, setContributors, setExamples, validate, validate, validateAll, validateAll, withOptions
-
Constructor Details
-
GenerateCalmArchitecture
public GenerateCalmArchitecture()
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayNamein classorg.openrewrite.Recipe
-
getDescription
- Specified by:
getDescriptionin classorg.openrewrite.Recipe
-
causesAnotherCycle
public boolean causesAnotherCycle()- Overrides:
causesAnotherCyclein classorg.openrewrite.Recipe
-
getInitialValue
- Specified by:
getInitialValuein classorg.openrewrite.ScanningRecipe<GenerateCalmArchitecture.Accumulator>
-
getScanner
public org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getScanner(GenerateCalmArchitecture.Accumulator acc) - Specified by:
getScannerin classorg.openrewrite.ScanningRecipe<GenerateCalmArchitecture.Accumulator>
-
generate
public Collection<org.openrewrite.SourceFile> generate(GenerateCalmArchitecture.Accumulator acc, org.openrewrite.ExecutionContext ctx) - Overrides:
generatein classorg.openrewrite.ScanningRecipe<GenerateCalmArchitecture.Accumulator>
-
getVisitor
public org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getVisitor(GenerateCalmArchitecture.Accumulator acc) - Overrides:
getVisitorin classorg.openrewrite.ScanningRecipe<GenerateCalmArchitecture.Accumulator>
-