Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/hookregistry/ClassLoaderHook.java')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/hookregistry/ClassLoaderHook.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/hookregistry/ClassLoaderHook.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/hookregistry/ClassLoaderHook.java
index 0f0b02b92..2cd8863a7 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/hookregistry/ClassLoaderHook.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/hookregistry/ClassLoaderHook.java
@@ -305,4 +305,21 @@ public abstract class ClassLoaderHook {
return false;
}
+ /**
+ * Returns the filtered list of ClasspathEntry instances for the given class, resource or entry.
+ * A {@code null} value may be returned in which case the find process will go over all the host and
+ * fragment entries in order to find the given entity which is the default behavior.
+ * Any non-null return value including an empty list will only look at the entries in the returned list.
+ *
+ * This method is used within {@link ClasspathManager#findLocalResource(String)}, {@link ClasspathManager#findLocalResources(String)},
+ * {@link ClasspathManager#findLocalClass(String) } and {@link ClasspathManager#findLocalEntry(String) }
+ *
+ * @param name the name of the requested class, resource or entry
+ * @param manager the classpath manager used to find the requested class, resource or entry
+ * @return the array of ClassPathEntry objects to use to load this given entity
+ */
+ public ClasspathEntry[] getClassPathEntries(String name, ClasspathManager manager) {
+ // do nothing by default
+ return null;
+ }
}

Back to the top