Package io.dropwizard.util
Class JarLocation
- java.lang.Object
-
- io.dropwizard.util.JarLocation
-
public class JarLocation extends Object
A class which encapsulates the location on the local filesystem of the JAR in which the current code is executing.
-
-
Constructor Summary
Constructors Constructor Description JarLocation(Class<?> klass)
Constructs a newJarLocation
object which gets access to the code source with the provided parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
getVersion()
Returns the version of the current jar holding the providedklass
.String
toString()
-
-
-
Constructor Detail
-
JarLocation
public JarLocation(Class<?> klass)
Constructs a newJarLocation
object which gets access to the code source with the provided parameter.- Parameters:
klass
- the class to access the code source from
-
-