templates.managedbean.ftlh Maven / Gradle / Ivy
package ${package};
import java.lang.annotation.Annotation;
import java.util.function.Supplier;
import java.util.Set;
import java.util.HashSet;
import jakarta.enterprise.context.Dependent;
import jakarta.inject.Provider;
import io.crysknife.client.BeanManager;
import io.crysknife.client.Reflect;
import io.crysknife.client.SyncBeanDef;
import io.crysknife.client.InstanceFactory;
import io.crysknife.client.internal.InstanceImpl;
import io.crysknife.client.internal.ManagedInstanceImpl;
import io.crysknife.client.internal.BeanFactory;
import io.crysknife.client.internal.proxy.OnFieldAccessed;
import io.crysknife.client.internal.QualifierUtil;
<#if !jre>
import io.crysknife.client.internal.proxy.Interceptor;
import io.crysknife.client.internal.proxy.OnFieldAccessed;
import io.crysknife.client.Reflect;
#if>
<#list imports as import>
import ${import};
#list>
@SuppressWarnings({"unchecked", "rawtypes"})
public class ${clazz}_Factory extends <#if isProxy>Proxy#if>BeanFactory<${bean}> {
<#list fields as call>
${call?no_esc}
#list>
<#list deps as dep>
private final Supplier> ${dep.fieldName} = ${dep.call?no_esc};
#list>
@Override()
public ${bean} createInstance() {
Set
© 2015 - 2025 Weber Informatics LLC | Privacy Policy