Class JpmsModuleUtilities
java.lang.Object
com.inductiveautomation.ignition.client.launch.util.JpmsModuleUtilities
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
allModuleConditionsMet
(List<JpmsModule> modules) Returns true if the JVM is currently running with the correct package open or exported from the required modules.static boolean
isExported
(Module exportToModule, Module exportFromModule, List<String> packages) Returns true if the packages are marked as "exported" from the supplied module to the supplied module.static boolean
isExported
(Module exportToModule, String exportFromModule, List<String> packages) Returns true if the packages are marked as "exported" from the supplied module to the supplied module.static boolean
isExported
(String exportToModule, String exportFromModule, List<String> packages) Returns true if the packages are marked as "exported" from the supplied module to the supplied module.static boolean
isExportedToUnnamed
(String exportFromModule, List<String> packages) Returns true if the packages are marked as "exported" from the supplied module to the unnamed module.static boolean
Returns true if the packages are marked as "open" from the supplied module to the supplied module.static boolean
Returns true if the packages are marked as "open" from the supplied module to the supplied module.static boolean
Returns true if the packages are marked as "open" from the supplied module to the supplied module.static boolean
isOpenedToUnnamed
(String openFromModule, List<String> packages) Returns true if the packages are marked as "open" from the supplied module to all unnamed modules.static boolean
moduleHasPackage
(String module, String pkg) Returns true if the supplied package is in fact in the supplied module.
-
Method Details
-
allModuleConditionsMet
Returns true if the JVM is currently running with the correct package open or exported from the required modules. -
isOpenedToUnnamed
public static boolean isOpenedToUnnamed(String openFromModule, List<String> packages) throws JpmsModuleUtilities.UnknownModuleException Returns true if the packages are marked as "open" from the supplied module to all unnamed modules. -
isOpened
public static boolean isOpened(String openToModule, String openFromModule, List<String> packages) throws JpmsModuleUtilities.UnknownModuleException Returns true if the packages are marked as "open" from the supplied module to the supplied module. For the unnamed module useisOpenedToUnnamed(String, List)
-
isOpened
public static boolean isOpened(Module openToModule, String openFromModule, List<String> packages) throws JpmsModuleUtilities.UnknownModuleException Returns true if the packages are marked as "open" from the supplied module to the supplied module. For the unnamed module useisOpenedToUnnamed(String, List)
-
isOpened
Returns true if the packages are marked as "open" from the supplied module to the supplied module. For the unnamed module useisOpenedToUnnamed(String, List)
-
isExportedToUnnamed
public static boolean isExportedToUnnamed(String exportFromModule, List<String> packages) throws JpmsModuleUtilities.UnknownModuleException Returns true if the packages are marked as "exported" from the supplied module to the unnamed module. -
isExported
public static boolean isExported(String exportToModule, String exportFromModule, List<String> packages) throws JpmsModuleUtilities.UnknownModuleException Returns true if the packages are marked as "exported" from the supplied module to the supplied module. For the unnamed module useisExportedToUnnamed(String, List)
-
isExported
public static boolean isExported(Module exportToModule, String exportFromModule, List<String> packages) throws JpmsModuleUtilities.UnknownModuleException Returns true if the packages are marked as "exported" from the supplied module to the supplied module. For the unnamed module useisExportedToUnnamed(String, List)
-
isExported
public static boolean isExported(Module exportToModule, Module exportFromModule, List<String> packages) Returns true if the packages are marked as "exported" from the supplied module to the supplied module. For the unnamed module useisExportedToUnnamed(String, List)
-
moduleHasPackage
Returns true if the supplied package is in fact in the supplied module.
-