Package com.linecorp.armeria.common.util
Class AppRootFinder
java.lang.Object
com.linecorp.armeria.common.util.AppRootFinder
public final class AppRootFinder extends Object
-
Method Summary
Modifier and Type Method Description static Path
find(Class<?> clazz)
static Path
findCurrent()
Returns thePath
to the JAR, WAR or directory where the caller class of this method is located at.static Path
findCurrent(int callDepth)
Returns thePath
to the JAR, WAR or directory where the caller class of this method is located at.
-
Method Details
-
findCurrent
Returns thePath
to the JAR, WAR or directory where the caller class of this method is located at. This method is a shortcut forfindCurrent(0)
. -
findCurrent
Returns thePath
to the JAR, WAR or directory where the caller class of this method is located at.- Parameters:
callDepth
- how many calls were made between the caller class and thisfindCurrent(int)
.
-
find
-