All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ftl.test.$$RestBasedMicroServiceTestFixerTemplateftl Maven / Gradle / Ivy

Go to download

The RxMicro Annotation Processor main module that contains the annotation processor classes.

There is a newer version: 0.11
Show newest version
<#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