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

ftl.data.aggregator.$$RepositoryFactoryImplTemplateftl Maven / Gradle / Ivy

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

    static {
        ${ENVIRONMENT_CUSTOMIZER_CLASS}.customize();
        <#list DEFAULT_CONFIG_VALUES as V>
        putDefaultConfigValue("${V.key}", ${V.value});
        
    }

    public ${IMPL_CLASS_NAME}() {
        <#list MONGO_REPOSITORIES as REPOSITORY>
        register(${REPOSITORY.simpleInterfaceName}.class,
                () -> createMongoRepository("${REPOSITORY.configNameSpace}", ${REPOSITORY.targetSimpleClassName}::new));
        
        <#list POSTGRE_SQL_REPOSITORIES as REPOSITORY>
        register(${REPOSITORY.simpleInterfaceName}.class,
                () -> createPostgreSQLRepository("${REPOSITORY.configNameSpace}", ${REPOSITORY.targetSimpleClassName}::new));
        
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy