public class OsgiClassLoader
extends java.lang.ClassLoader
implements org.hibernate.service.spi.Stoppable
Constructor and Description |
---|
OsgiClassLoader() |
Modifier and Type | Method and Description |
---|---|
void |
addBundle(org.osgi.framework.Bundle bundle)
Adds a Bundle to the wrapped set of Bundles
|
void |
addClassLoader(java.lang.ClassLoader classLoader)
Adds a ClassLoader to the wrapped set of ClassLoaders
|
protected java.lang.Class<?> |
findClass(java.lang.String name)
Load the class and break on first found match.
|
protected java.net.URL |
findResource(java.lang.String name)
Load the class and break on first found match.
|
protected java.util.Enumeration<java.net.URL> |
findResources(java.lang.String name)
Load the class and break on first found match.
|
void |
stop() |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
protected java.lang.Class<?> findClass(java.lang.String name) throws java.lang.ClassNotFoundException
findClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
protected java.net.URL findResource(java.lang.String name)
findResource
in class java.lang.ClassLoader
protected java.util.Enumeration<java.net.URL> findResources(java.lang.String name)
findResources
in class java.lang.ClassLoader
public void addClassLoader(java.lang.ClassLoader classLoader)
classLoader
- The ClassLoader to addpublic void addBundle(org.osgi.framework.Bundle bundle)
bundle
- The Bundle to addpublic void stop()
stop
in interface org.hibernate.service.spi.Stoppable
Copyright © 2001-2019 Red Hat, Inc. All Rights Reserved.