Package org.openrewrite.config
Class ClasspathScanningLoader
java.lang.Object
org.openrewrite.config.ClasspathScanningLoader
- All Implemented Interfaces:
ResourceLoader
-
Constructor Summary
ConstructorsConstructorDescriptionClasspathScanningLoader(Path jar, Properties properties, Collection<? extends ResourceLoader> dependencyResourceLoaders, ClassLoader classLoader) ClasspathScanningLoader(Properties properties, ClassLoader classLoader) Construct a ClasspathScanningLoader scans the provided classload for recipesClasspathScanningLoader(Properties properties, String[] acceptPackages) Construct a ClasspathScanningLoader scans the runtime classpath of the current java process for recipes -
Method Summary
-
Constructor Details
-
ClasspathScanningLoader
Construct a ClasspathScanningLoader scans the runtime classpath of the current java process for recipes- Parameters:
properties- Yaml placeholder propertiesacceptPackages- Limit scan to specified packages
-
ClasspathScanningLoader
Construct a ClasspathScanningLoader scans the provided classload for recipes- Parameters:
properties- Yaml placeholder propertiesclassLoader- Limit scan to classes loadable by this classloader
-
ClasspathScanningLoader
public ClasspathScanningLoader(Path jar, Properties properties, Collection<? extends ResourceLoader> dependencyResourceLoaders, ClassLoader classLoader)
-
-
Method Details
-
onlyYaml
-
listRecipes
- Specified by:
listRecipesin interfaceResourceLoader
-
listRecipeDescriptors
- Specified by:
listRecipeDescriptorsin interfaceResourceLoader
-
listCategoryDescriptors
- Specified by:
listCategoryDescriptorsin interfaceResourceLoader
-
listStyles
- Specified by:
listStylesin interfaceResourceLoader
-
listRecipeExamples
- Specified by:
listRecipeExamplesin interfaceResourceLoader
-
listContributors
- Specified by:
listContributorsin interfaceResourceLoader
-