|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
org.hibernate.osgi.OsgiClassLoader
public class OsgiClassLoader
Custom OSGI ClassLoader helper which knows all the "interesting" class loaders and bundles. Encapsulates the OSGi related CL capabilities.
Constructor Summary | |
---|---|
OsgiClassLoader()
|
Method Summary | |
---|---|
void |
addBundle(org.osgi.framework.Bundle bundle)
|
void |
addClassLoader(ClassLoader classLoader)
|
void |
clear()
|
protected Class<?> |
findClass(String name)
Load the class and break on first found match. |
protected URL |
findResource(String name)
Load the class and break on first found match. |
protected Enumeration<URL> |
findResources(String name)
Load the class and break on first found match. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OsgiClassLoader()
Method Detail |
---|
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)
findResources
in class ClassLoader
public void addClassLoader(ClassLoader classLoader)
public void addBundle(org.osgi.framework.Bundle bundle)
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |