diff options
author | Decebal Suiu <decebal.suiu@gmail.com> | 2020-04-21 13:59:56 +0300 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2020-04-21 14:21:55 +0300 |
commit | 42bb7976de80ac8711f62d2278c234c240987b85 (patch) | |
tree | 53ba1d9163d9f322c5b652331f8ac7b7c88b1878 /pf4j/src/main/java/org | |
parent | c10e9bc60caab66143f271a968d1b6a3babb615d (diff) | |
download | pf4j-42bb7976de80ac8711f62d2278c234c240987b85.tar.gz pf4j-42bb7976de80ac8711f62d2278c234c240987b85.zip |
Add test for findExtensionAnnotation (preparation for #363)
Diffstat (limited to 'pf4j/src/main/java/org')
-rw-r--r-- | pf4j/src/main/java/org/pf4j/AbstractExtensionFinder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pf4j/src/main/java/org/pf4j/AbstractExtensionFinder.java b/pf4j/src/main/java/org/pf4j/AbstractExtensionFinder.java index 0862501..e2bd327 100644 --- a/pf4j/src/main/java/org/pf4j/AbstractExtensionFinder.java +++ b/pf4j/src/main/java/org/pf4j/AbstractExtensionFinder.java @@ -348,7 +348,7 @@ public abstract class AbstractExtensionFinder implements ExtensionFinder, Plugin return new ExtensionWrapper<>(descriptor, pluginManager.getExtensionFactory()); } - private Extension findExtensionAnnotation(Class<?> clazz) { + public static Extension findExtensionAnnotation(Class<?> clazz) { if (clazz.isAnnotationPresent(Extension.class)) { return clazz.getAnnotation(Extension.class); } |