Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/loader/ModuleClassLoader.java')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/loader/ModuleClassLoader.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/loader/ModuleClassLoader.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/loader/ModuleClassLoader.java
index 89eaa42b7..61bfd8927 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/loader/ModuleClassLoader.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/loader/ModuleClassLoader.java
@@ -43,6 +43,7 @@ public abstract class ModuleClassLoader extends ClassLoader implements BundleRef
this.generation = generation;
}
+ @Override
public Bundle getBundle() {
return generation.getRevision().getBundle();
}
@@ -145,6 +146,7 @@ public abstract class ModuleClassLoader extends ClassLoader implements BundleRef
* @return The Class object.
* @throws ClassNotFoundException if the class is not found.
*/
+ @Override
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {
if (getDebug().DEBUG_LOADER)
Debug.println("ModuleClassLoader[" + getBundleLoader() + "].loadClass(" + name + ")"); //$NON-NLS-1$ //$NON-NLS-2$//$NON-NLS-3$
@@ -189,6 +191,7 @@ public abstract class ModuleClassLoader extends ClassLoader implements BundleRef
* @param name The resource path to get.
* @return The URL of the resource or null if it does not exist.
*/
+ @Override
public URL getResource(String name) {
if (getDebug().DEBUG_LOADER) {
Debug.println("ModuleClassLoader[" + getBundleLoader() + "].getResource(" + name + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
@@ -224,6 +227,7 @@ public abstract class ModuleClassLoader extends ClassLoader implements BundleRef
* @param name The resource path to get.
* @return The Enumeration of the resource URLs.
*/
+ @Override
public Enumeration<URL> getResources(String name) throws IOException {
if (getDebug().DEBUG_LOADER) {
Debug.println("ModuleClassLoader[" + getBundleLoader() + "].getResources(" + name + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
@@ -248,6 +252,7 @@ public abstract class ModuleClassLoader extends ClassLoader implements BundleRef
* @param libname The library to find.
* @return The absolution path to the library or null if not found
*/
+ @Override
protected String findLibrary(String libname) {
// let the manager find the library for us
return getClasspathManager().findLibrary(libname);
@@ -368,6 +373,7 @@ public abstract class ModuleClassLoader extends ClassLoader implements BundleRef
}
}
+ @Override
public Bundle getBundle() {
return getGeneration().getRevision().getBundle();
}
@@ -384,6 +390,7 @@ public abstract class ModuleClassLoader extends ClassLoader implements BundleRef
return getClasspathManager().listLocalResources(path, filePattern, options);
}
+ @Override
public String toString() {
Bundle b = getBundle();
StringBuffer result = new StringBuffer(super.toString());

Back to the top