public class BundleDelegatingClassLoader extends ClassLoader
Constructor and Description |
---|
BundleDelegatingClassLoader(org.osgi.framework.Bundle bundle) |
BundleDelegatingClassLoader(org.osgi.framework.Bundle bundle,
ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
findClass(String name) |
protected URL |
findResource(String name) |
protected Enumeration<URL> |
findResources(String name) |
org.osgi.framework.Bundle |
getBundle() |
protected Class<?> |
loadClass(String name,
boolean resolve) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public BundleDelegatingClassLoader(org.osgi.framework.Bundle bundle)
public BundleDelegatingClassLoader(org.osgi.framework.Bundle bundle, ClassLoader classLoader)
protected Class<?> findClass(String name) throws ClassNotFoundException
findClass
in class ClassLoader
ClassNotFoundException
protected URL findResource(String name)
findResource
in class ClassLoader
protected Enumeration<URL> findResources(String name) throws IOException
findResources
in class ClassLoader
IOException
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
public org.osgi.framework.Bundle getBundle()
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.