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.
-
-
-
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...- 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...
-
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!
-
-