All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aQute.launcher.minifw.BundleClassLoader Maven / Gradle / Ivy

There is a newer version: 7.0.0
Show newest version
package aQute.launcher.minifw;

import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.net.URLClassLoader;

import org.osgi.framework.Bundle;
import org.osgi.framework.BundleReference;

class BundleClassLoader extends URLClassLoader implements BundleReference {
	private final Bundle bundle;

	BundleClassLoader(File file, ClassLoader parent, Bundle bundle) throws IOException {
		super(new URL[] {
			file.toURI()
				.toURL()
		}, parent);
		this.bundle = bundle;
	}

	@Override
	public Bundle getBundle() {
		return bundle;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy