public final class CapsuleUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getAppId()
Returns this capsule's app ID.
|
static Path |
getCapsuleAppDir()
Returns the full path to the capsule's app cache directory.
|
static Path |
getCapsuleJar()
Returns the full path to the capsule's JAR.
|
static boolean |
isRunningInCapsule()
Tests if we're running in a capsule.
|
public static boolean isRunningInCapsule()
true if this code has been launched in a capsule, or false otherwise.public static String getAppId()
IllegalStateException - if this code has not been launched in a capsule.public static Path getCapsuleJar()
IllegalStateException - if this code has not been launched in a capsule.public static Path getCapsuleAppDir()
null, if the capsule has not been extracted.IllegalStateException - if this code has not been launched in a capsule.