Class JarSource

  • All Implemented Interfaces:
    ConfigSource

    public class JarSource
    extends java.lang.Object
    implements ConfigSource
    Source specifying config as a jar file entry
    Author:
    Vegard Havdal
    • Constructor Summary

      Constructors 
      Constructor Description
      JarSource​(java.util.jar.JarFile jarFile, java.lang.String path)
      Creates a new jar source
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.jar.JarFile getJarFile()  
      java.lang.String getPath()  
      • Methods inherited from class java.lang.Object

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

      • JarSource

        public JarSource​(java.util.jar.JarFile jarFile,
                         java.lang.String path)
        Creates a new jar source
        Parameters:
        jarFile - the jar file to use as a source
        path - the path within the jar file, or null to use the default config/
    • Method Detail

      • getJarFile

        public java.util.jar.JarFile getJarFile()
      • getPath

        public java.lang.String getPath()