Class AssetLookup.AssetLocation

  • Enclosing class:
    AssetLookup

    public static class AssetLookup.AssetLocation
    extends java.lang.Object
    Represent resolved asset location: actual classpath path (absolute) and target class loader (where resource found). Object used to cover various situations: only target classpath path required or file itself.
    • Constructor Summary

      Constructors 
      Constructor Description
      AssetLocation​(java.lang.String path, java.lang.ClassLoader loader, java.net.URL url)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.ClassLoader getLoader()  
      java.lang.String getPath()  
      java.net.URL getUrl()  
      • Methods inherited from class java.lang.Object

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

      • AssetLocation

        public AssetLocation​(java.lang.String path,
                             java.lang.ClassLoader loader,
                             java.net.URL url)
    • Method Detail

      • getPath

        public java.lang.String getPath()
        Returns:
        absolute asset classpath path
      • getLoader

        public java.lang.ClassLoader getLoader()
        Returns:
        class loader containing asset
      • getUrl

        public java.net.URL getUrl()
        Returns:
        url to asset file