Package org.openrewrite.config
Class YamlResourceLoader
- java.lang.Object
-
- org.openrewrite.config.YamlResourceLoader
-
- All Implemented Interfaces:
ResourceLoader
public class YamlResourceLoader extends java.lang.Object implements ResourceLoader
-
-
Constructor Summary
Constructors Constructor Description YamlResourceLoader(java.io.InputStream yamlInput, java.net.URI source, java.util.Properties properties)Load a declarative recipe using the runtime classloaderYamlResourceLoader(java.io.InputStream yamlInput, java.net.URI source, java.util.Properties properties, @Nullable java.lang.ClassLoader classLoader)Load a declarative recipe, optionally using the specified classloader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<CategoryDescriptor>listCategoryDescriptors()java.util.Collection<RecipeDescriptor>listRecipeDescriptors()java.util.Collection<RecipeDescriptor>listRecipeDescriptors(java.util.Collection<Recipe> externalRecipes)java.util.Collection<RecipeExample>listRecipeExamples()java.util.Collection<Recipe>listRecipes()java.util.Collection<NamedStyles>listStyles()
-
-
-
Constructor Detail
-
YamlResourceLoader
public YamlResourceLoader(java.io.InputStream yamlInput, java.net.URI source, java.util.Properties properties) throws java.io.UncheckedIOExceptionLoad a declarative recipe using the runtime classloader- Parameters:
yamlInput- Declarative recipe yaml input streamsource- Declarative recipe sourceproperties- Placeholder properties- Throws:
java.io.UncheckedIOException- On unexpected IOException
-
YamlResourceLoader
public YamlResourceLoader(java.io.InputStream yamlInput, java.net.URI source, java.util.Properties properties, @Nullable @Nullable java.lang.ClassLoader classLoader) throws java.io.UncheckedIOExceptionLoad a declarative recipe, optionally using the specified classloader- Parameters:
yamlInput- Declarative recipe yaml input streamsource- Declarative recipe sourceproperties- Placeholder propertiesclassLoader- Optional classloader to use with jackson. If not specified, the runtime classloader will be used.- Throws:
java.io.UncheckedIOException- On unexpected IOException
-
-
Method Detail
-
listRecipes
public java.util.Collection<Recipe> listRecipes()
- Specified by:
listRecipesin interfaceResourceLoader
-
listRecipeDescriptors
public java.util.Collection<RecipeDescriptor> listRecipeDescriptors()
- Specified by:
listRecipeDescriptorsin interfaceResourceLoader
-
listRecipeDescriptors
public java.util.Collection<RecipeDescriptor> listRecipeDescriptors(java.util.Collection<Recipe> externalRecipes)
-
listStyles
public java.util.Collection<NamedStyles> listStyles()
- Specified by:
listStylesin interfaceResourceLoader
-
listCategoryDescriptors
public java.util.Collection<CategoryDescriptor> listCategoryDescriptors()
- Specified by:
listCategoryDescriptorsin interfaceResourceLoader
-
listRecipeExamples
public java.util.Collection<RecipeExample> listRecipeExamples()
- Specified by:
listRecipeExamplesin interfaceResourceLoader
-
-