Class LaunchSysProp<T>
java.lang.Object
com.inductiveautomation.ignition.client.launch.util.LaunchSysProp<T>
- Direct Known Subclasses:
LaunchSysProp.BooleanLaunchSysProp,LaunchSysProp.IntLaunchSysProp,LaunchSysProp.LaunchSysPropWithJvm,LaunchSysProp.LongLaunchSysProp,LaunchSysProp.SequenceLaunchSysProp,LaunchSysProp.StringLaunchSysProp
A System Property reference which has its value set at instantiation. This value is typically supplied via the
System.getProperty(String) function, taking into account any legacyKey values as backup-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAnalogous toLaunchSysProp.StringLaunchSysProp, but for Booleans.static classAnalogous toLaunchSysProp.StringLaunchSysProp, but for Integers.static classA system prop which has keys and legacy keys, but also has a companion "jvm" property which should be set along with it.static classAnalogous toLaunchSysProp.StringLaunchSysProp, but for Longs.static classA collection of system props which expect to have a 'list' of system properties which are in the form of{key}.{index}.static classThe most standard form of a system property, whose value is simply a (nullable) String type. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionkey()toDProps()Returns a set of CLI arguments in the form of-D${key}=${value}, unless the value is null, then an empty Set is returnedtoDPropsWith(T value) Returns a set of CLI arguments in the form of-D${key}=${value}, unless the value is null, then an empty Set is returned.value()Returns the value assigned at instantiation.Returns the value assigned at instantiation or the defaultValue supplied
-
Field Details
-
key
-
value
-
legacyKey
-
-
Method Details
-
key
-
value
Returns the value assigned at instantiation. May be null -
valueOr
Returns the value assigned at instantiation or the defaultValue supplied -
toDProps
Returns a set of CLI arguments in the form of-D${key}=${value}, unless the value is null, then an empty Set is returned -
toDPropsWith
Returns a set of CLI arguments in the form of-D${key}=${value}, unless the value is null, then an empty Set is returned. The value which is provided is the value which is always returned. This is a convenience method for returning the correct CLI arguments, but where a new value is required, like on retargets etc
-