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

ftl.cdi.$$BeanFactoryImplTemplateftl Maven / Gradle / Ivy

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

    static {
        ${ENVIRONMENT_CUSTOMIZER_CLASS}.customize();
    }

    public ${IMPL_CLASS_NAME}() {
        <#list BEAN_DEFINITIONS as DEF>
        register(
                ${DEF.beanSimpleClassName}.class, new ${DEF.beanSupplierImplSimpleClassName}(),
                <#list DEF.beanRegistrationQualifierRules as q>
                ${q.javaCodeFragment}<#if q?has_next>,
                
        );
        <#if DEF.beanDefinition.factoryClass>
        register(
                ${DEF.beanDefinition.factoryTypeSimpleClassName}.class, new ${DEF.beanSupplierImplSimpleClassName}.${DEF.beanDefinition.beanFactoryTypeSupplierImplSimpleClassName}(),
                <#list DEF.factoryRegistrationQualifierRules as q>
                ${q.javaCodeFragment}<#if q?has_next>,
                
        );
        
        
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy