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

ftl.$$EnvironmentCustomizerTemplateftl Maven / Gradle / Ivy

Go to download

The RxMicro Annotation Processor internal module that contains common components for other generators.

There is a newer version: 0.11
Show newest version
<#include "common-lib.javaftl">
<#-- -------------------------------------------------------------------------------------------------------- -->
final class ${CLASS_NAME} {

    static {
        <#if CURRENT_MODULE_IS_NAMED>
        addExportsToRuntime();
        
        <#if DEFAULT_CONFIG_VALUES?has_content>
        putDefaultConfigValues();
        
        // All required customization must be here
    }

    public static void customize() {
        //do nothing. All customization is done at the static section
    }

    <#if CURRENT_MODULE_IS_NAMED>
    private static void addExportsToRuntime() {
        final Module currentModule = $$EnvironmentCustomizer.class.getModule();
        currentModule.addExports("${PACKAGE_NAME}", getRuntimeModule());
    }

    
    <#if DEFAULT_CONFIG_VALUES?has_content>
    private static void putDefaultConfigValues() {
        <#list DEFAULT_CONFIG_VALUES as V>
        putDefaultConfigValue("${V.key}", ${V.value});
        
    }

    
    private ${CLASS_NAME}() {
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy