From 6533d2258c5987d8a042625bb21a8ee766f9a8f6 Mon Sep 17 00:00:00 2001 From: Decebal Suiu Date: Tue, 5 Jan 2016 14:04:50 +0200 Subject: [PATCH] Remove isExtensionPoint check in AbstractExtensionFinder so a Service from a ServiceProvider is seen as an extension point --- .../ro/fortsoft/pf4j/AbstractExtensionFinder.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/AbstractExtensionFinder.java b/pf4j/src/main/java/ro/fortsoft/pf4j/AbstractExtensionFinder.java index 53506fb..3cefea9 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/AbstractExtensionFinder.java +++ b/pf4j/src/main/java/ro/fortsoft/pf4j/AbstractExtensionFinder.java @@ -45,13 +45,6 @@ public abstract class AbstractExtensionFinder implements ExtensionFinder, Plugin @Override public List> find(Class type) { - log.debug("Checking extension point '{}'", type.getName()); - if (!isExtensionPoint(type)) { - log.warn("'{}' is not an extension point", type.getName()); - - return Collections.emptyList(); // or return null ?! - } - log.debug("Finding extensions for extension point '{}'", type.getName()); Map> entries = getEntries(); @@ -133,10 +126,6 @@ public abstract class AbstractExtensionFinder implements ExtensionFinder, Plugin return result; } - private boolean isExtensionPoint(Class type) { - return ExtensionPoint.class.isAssignableFrom(type); - } - private Map> getEntries() { if (entries == null) { entries = readStorages(); -- 2.39.5