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

templates.resources.clientbundle.ftlh Maven / Gradle / Ivy

package ${package};

import org.treblereel.j2cl.processors.common.resources.ResourcePrototype;
import org.treblereel.j2cl.processors.common.resources.TextResource;

public class ${className} implements ${parent} {

    public static final ${className} INSTANCE = new ${className}();

    private java.util.HashMap resourceMap;

    private ${className}() {

    }

<#list methods as method>
    ${method?no_esc};


    public ResourcePrototype getResource(String name) {
        if (resourceMap == null) {
            resourceMap = new java.util.HashMap<>();
<#list resources as resource>
            resourceMap.put("${resource}", ${resource}());

        }
        return resourceMap.get(name);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy