public interface Capsule
| Modifier and Type | Method and Description |
|---|---|
String |
getAppId()
Returns a capsule's ID..
|
<T> T |
getAttribute(Attribute<T> attr)
Returns the value of the given manifest attribute with consideration to the capsule's mode.
|
List<Class<?>> |
getCaplets()
Returns a list of all caplet classes, in order.
|
Set<String> |
getModes()
Returns the capsule's supported modes.
|
Properties |
getProperties()
The properties used by the capsule.
|
String |
getVersion()
Returns the capsule's version.
|
boolean |
hasAttribute(Attribute<?> attr)
Tests whether the given attribute is found in the manifest.
|
boolean |
hasCaplet(String name)
Checks whether a caplet with the given class name is installed.
|
ProcessBuilder |
prepareForLaunch(List<String> jvmArgs,
List<String> args)
Creates a
ProcessBuilder ready to use for launching the capsule. |
String getVersion()
Properties getProperties()
String getAppId()
boolean hasAttribute(Attribute<?> attr)
<T> T getAttribute(Attribute<T> attr)
boolean hasCaplet(String name)
ProcessBuilder prepareForLaunch(List<String> jvmArgs, List<String> args)
ProcessBuilder ready to use for launching the capsule.jvmArgs - JVM arguments to use for launching the capsuleargs - command line arguments to pass to the capsule.ProcessBuilder for launching the capsule process