Class JpmsModuleUtilities
java.lang.Object
com.inductiveautomation.ignition.client.launch.util.JpmsModuleUtilities
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanallModuleConditionsMet(List<JpmsModule> modules) Returns true if the JVM is currently running with the correct package open or exported from the required modules.static booleanisExported(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 booleanisExported(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 booleanisExported(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 booleanisExportedToUnnamed(String exportFromModule, List<String> packages) Returns true if the packages are marked as "exported" from the supplied module to the unnamed module.static booleanReturns true if the packages are marked as "open" from the supplied module to the supplied module.static booleanReturns true if the packages are marked as "open" from the supplied module to the supplied module.static booleanReturns true if the packages are marked as "open" from the supplied module to the supplied module.static booleanisOpenedToUnnamed(String openFromModule, List<String> packages) Returns true if the packages are marked as "open" from the supplied module to all unnamed modules.static booleanmoduleHasPackage(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.
-