
ftl.test.$$IntegrationTestFixerTemplateftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxmicro-annotation-processor Show documentation
Show all versions of rxmicro-annotation-processor Show documentation
The RxMicro Annotation Processor main module that contains the annotation processor classes.
<#include "../common-lib.javaftl">
<#-- -------------------------------------------------------------------------------------------------------- -->
public final class ${JAVA_CLASS_NAME} {
static {
final Module currentModule = ${JAVA_CLASS_NAME}.class.getModule();
currentModule.addExports("${PACKAGE_NAME}", getRuntimeModule());
}
public ${JAVA_CLASS_NAME}() {
final Module currentModule = getClass().getModule();
if (currentModule.isNamed()) {
final Module unNamedModule = getClass().getClassLoader().getUnnamedModule();
currentModule.getPackages().forEach(p -> {
currentModule.addOpens(p, unNamedModule);
System.out.println(format("opens ?/? to ALL-UNNAMED", currentModule.getName(), p));
});
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy