Class OsgiClassLoader


  • @Deprecated
    public class OsgiClassLoader
    extends java.lang.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 java.lang.Class<?> findClass​(java.lang.String name)
      Deprecated.
      Load the class and break on first found match.
      protected java.net.URL findResource​(java.lang.String name)
      Deprecated.
      Load the resource and break on first found match.
      protected java.util.Enumeration<java.net.URL> findResources​(java.lang.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

      • findClass

        protected java.lang.Class<?> findClass​(java.lang.String name)
                                        throws java.lang.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:
        java.lang.ClassNotFoundException
      • findResource

        protected java.net.URL findResource​(java.lang.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 java.util.Enumeration<java.net.URL> findResources​(java.lang.String name)
        Deprecated.
        Load the resources and return an Enumeration Note: Since they're Enumerations, do not cache these results!