public final class RequiredJavaVersion
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
protected static Pair<java.lang.Boolean,java.lang.String> |
checkJava(java.lang.String preformattedFailMsg,
java.lang.String preformattedWarnMsg,
java.lang.String preformattedFcsMsg,
java.lang.String productName)
Checks for whether the product with the current JVM is the right JVM
version for the designated product.
|
static Pair<java.lang.Boolean,java.lang.String> |
checkJavaMessage(java.lang.String preformattedFailMsg,
java.lang.String preformattedWarnMsg)
Checks for whether the product with the current JVM is the right JVM
version for the designated product.
|
static Pair<java.lang.Boolean,java.lang.String> |
checkJavaMessage(java.lang.String preformattedFailMsg,
java.lang.String preformattedWarnMsg,
java.lang.String preformattedFcsMsg)
Checks for whether the product with the current JVM is the right JVM
version for the designated product.
|
static Pair<java.lang.Boolean,java.lang.String> |
checkJavaProduct(java.lang.String productName)
Checks for whether the product with the current JVM is the right JVM
version for the designated product.
|
public static Pair<java.lang.Boolean,java.lang.String> checkJavaProduct(java.lang.String productName)
Boolean indicating how to use the message.
Use the return value as follows:
null: Everything is fine, ignore the message (which will be
also null.
false: The current Java is unknown, the message could be used
as warning.
true: The current Java is known and does not meet the
requirements, use the message to abort/fail.
productName - The name of the product for which the JVM version is
checked.null, if the current JVM version is unknown the Boolean
will be false and if the current JVM is known to be
inappropriate the Boolean will be true.public static Pair<java.lang.Boolean,java.lang.String> checkJavaMessage(java.lang.String preformattedFailMsg, java.lang.String preformattedWarnMsg)
Boolean
indicating how to use the message.
Use the return value as follows:
null: Everything is fine, ignore the message (which will be
also null.
false: The current Java is unknown, the message could be used
as warning.
true: The current Java is known and does not meet the
requirements, use the message to abort/fail.
preformattedFailMsg - The preformatted fail message used for the
created message in case the current JVM version is not
appropriate. The designated message can contain arguments for the
company name (%1$s), the minimum version (%2$) and the current
version (%3$s).preformattedWarnMsg - The preformatted warning message used for the
created message in case the current JVM version is unknown. The
designated message can contain arguments for the company name
(%1$s) and the current version (%2$s).null, if the current JVM version is unknown the Boolean
will be false and if the current JVM is known to be
inappropriate the Boolean will be true.public static Pair<java.lang.Boolean,java.lang.String> checkJavaMessage(java.lang.String preformattedFailMsg, java.lang.String preformattedWarnMsg, java.lang.String preformattedFcsMsg)
Boolean
indicating how to use the message.
Use the return value as follows:
null: Everything is fine, ignore the message (which will be
also null.
false: The current Java is unknown, the message could be used
as warning.
true: The current Java is known and does not meet the
requirements, use the message to abort/fail.
preformattedFailMsg - The preformatted fail message used for the
created message in case the current JVM version is not
appropriate. The designated message can contain arguments for the
company name (%1$s), the minimum version (%2$) and the current
version (%3$s).preformattedWarnMsg - The preformatted warning message used for the
created message in case the current JVM version is unknown. The
designated message can contain arguments for the company name
(%1$s) and the current version (%2$s).preformattedFcsMsg - The preformatted warning message used for the
created message in case the current JVM version is a known JVM in
a non-FCS variant. The designated message can contain arguments
for the company name (%1$s) and the current version (%2$s).null, if the current JVM version is unknown the Boolean
will be false and if the current JVM is known to be
inappropriate the Boolean will be true.protected static Pair<java.lang.Boolean,java.lang.String> checkJava(java.lang.String preformattedFailMsg, java.lang.String preformattedWarnMsg, java.lang.String preformattedFcsMsg, java.lang.String productName)
Boolean indicating how to use the message.
Use the return value as follows:
null: Everything is fine, ignore the message (which will be
also null.
false: The current Java is unknown, the message could be used
as warning.
true: The current Java is known and does not meet the
requirements, use the message to abort/fail.
preformattedFailMsg - The preformatted fail message used for the
created message in case the current JVM version is not
appropriate. The designated message can contain arguments for the
company name (%1$s), the minimum version (%2$) and the current
version (%3$s). If this is null a default message will be
used.preformattedWarnMsg - The preformatted warning message used for the
created message in case the current JVM version is unknown or a
non-FCS. The designated message can contain arguments for the
company name (%1$s) and the current version (%2$s).preformattedFcsMsg - The preformatted warning message used for the
created message in case the current JVM version is a known JVM in
a non-FCS variant. The designated message can contain arguments
for the company name (%1$s) and the current version (%2$s).productName - The name of the product for which the JVM version is
checked. This should only be null in case the preformatted
message is not null.null, if the current JVM version is unknown the Boolean
will be false and if the current JVM is known to be
inappropriate the Boolean will be true.