Package org.infinispan.commons.util
Class OsgiClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- org.infinispan.commons.util.OsgiClassLoader
-
@Deprecated public class OsgiClassLoader extends ClassLoader
Deprecated.Since 10.1, OSGi support is deprecated and will be removed in a future version.- Author:
- Brett Meyer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Class<?>
findClass(String name)
Deprecated.Load the class and break on first found match.protected URL
findResource(String name)
Deprecated.Load the resource and break on first found match.protected Enumeration<URL>
findResources(String name)
Deprecated.Load the resources and return an Enumeration Note: Since they're Enumerations, do not cache these results!static OsgiClassLoader
getInstance()
Deprecated.-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Method Detail
-
getInstance
public static OsgiClassLoader getInstance()
Deprecated.
-
findClass
protected Class<?> findClass(String name) throws ClassNotFoundException
Deprecated.Load the class and break on first found match. TODO: Should this throw a different exception or warn if multiple classes were found? Naming collisions can and do happen in OSGi...- Overrides:
findClass
in classClassLoader
- Throws:
ClassNotFoundException
-
findResource
protected URL findResource(String name)
Deprecated.Load the resource and break on first found match. TODO: Should this throw a different exception or warn if multiple resources were found? Naming collisions can and do happen in OSGi...- Overrides:
findResource
in classClassLoader
-
findResources
protected Enumeration<URL> findResources(String name)
Deprecated.Load the resources and return an Enumeration Note: Since they're Enumerations, do not cache these results!- Overrides:
findResources
in classClassLoader
-
-