public class Modules
extends java.lang.Object
| Constructor and Description |
|---|
Modules() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyModule(java.lang.Class<?> from,
java.lang.Class<?> to)
Copy the module from one class to another
This bypasses all reflection restrictions in place |
static void |
openModule(java.lang.Class<?> clazz)
Open a module of a class to everyone
This allows the usage of jdk internal classes which are normally protected by restricted module access |
public static void copyModule(java.lang.Class<?> from,
java.lang.Class<?> to)
from - The class to copy the module fromto - The class to copy the module topublic static void openModule(java.lang.Class<?> clazz)
clazz - The class to open the module of