Skip to content

Commit

Permalink
Recipes must be public to be loaded by ClasspathScanningLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider committed Oct 3, 2023
1 parent e68262b commit 0893a6f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ private void configureRecipes(ScanResult result, String className) {
for (ClassInfo classInfo : result.getSubclasses(className)) {
Class<?> recipeClass = classInfo.loadClass();
if (recipeClass.getName().equals(DeclarativeRecipe.class.getName()) ||
(recipeClass.getModifiers() & Modifier.PUBLIC) == 0 ||
// `ScanningRecipe` is an example of an abstract `Recipe` subtype
(recipeClass.getModifiers() & Modifier.ABSTRACT) != 0) {
continue;
Expand Down

0 comments on commit 0893a6f

Please sign in to comment.