Class ClassLoaderResource


  • public class ClassLoaderResource
    extends java.lang.Object
    Details of a resource found on a classloader.
    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    See Also:
    JRLoader.getClassLoaderResources(String)
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassLoaderResource​(java.net.URL url, java.lang.ClassLoader classLoader)
      Creates a classloader resource.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.ClassLoader getClassLoader()
      Returns the classloader on which the resource was found.
      java.net.URL getUrl()
      Returns the URL of the resource.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClassLoaderResource

        public ClassLoaderResource​(java.net.URL url,
                                   java.lang.ClassLoader classLoader)
        Creates a classloader resource.
        Parameters:
        url - the URL of the resource
        classLoader - the classloader on which it was found
    • Method Detail

      • getUrl

        public java.net.URL getUrl()
        Returns the URL of the resource.
        Returns:
        the resource URL
      • getClassLoader

        public java.lang.ClassLoader getClassLoader()
        Returns the classloader on which the resource was found.
        Returns:
        the classloader that found the resource