java.lang.Object
org.simpleflatmapper.reflect.InstantiatorFactory
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiatorFactory(AsmFactoryProvider asmFactory) InstantiatorFactory(AsmFactoryProvider asmFactory, boolean faileOnAsmError) -
Method Summary
Modifier and TypeMethodDescription<S1,S2, T> BuilderBiInstantiator<S1, S2, T> builderBiInstantiator(BuilderInstantiatorDefinition instantiatorDefinition, Map<Parameter, org.simpleflatmapper.util.BiFunction<? super S1, ? super S2, ?>> injections, boolean useAsmIfEnabled, boolean builderIgnoresNullValues) <S1,S2, T> BiInstantiator<S1, S2, T> getArrayBiInstantiator(Class<?> elementType, int length) <S,T> Instantiator<S, T> getArrayInstantiator(Class<?> elementType, int length) <S1,S2, T> BiInstantiator<S1, S2, T> getBiInstantiator(Type target, Class<?> s1, Class<?> s2, List<InstantiatorDefinition> constructors, Map<Parameter, org.simpleflatmapper.util.BiFunction<? super S1, ? super S2, ?>> injections, boolean useAsmIfEnabled, boolean builderIgnoresNullValues) <S1,S2, T> BiInstantiator<S1, S2, T> getBiInstantiator(InstantiatorDefinition instantiatorDefinition, Class<?> s1, Class<?> s2, Map<Parameter, org.simpleflatmapper.util.BiFunction<? super S1, ? super S2, ?>> injections, boolean useAsmIfEnabled, boolean builderIgnoresNullValues) <S,T> Instantiator<S, T> getInstantiator(Type target, Class<S> source, List<InstantiatorDefinition> constructors, Map<Parameter, Getter<? super S, ?>> injections, boolean useAsmIfEnabled, boolean builderIgnoresNullValues) <S,T> Instantiator<S, T> getInstantiator(InstantiatorDefinition instantiatorDefinition, Class<S> source, Map<Parameter, Getter<? super S, ?>> injections, boolean useAsmIfEnabled, boolean builderIgnoresNullValues) <S,T> Instantiator<S, T> getOneArgIdentityInstantiator(InstantiatorDefinition id, boolean builderIgnoresNullValues) static InstantiatorDefinitiongetSmallerConstructor(List<InstantiatorDefinition> constructors, Set<Parameter> parameters)
-
Constructor Details
-
InstantiatorFactory
-
InstantiatorFactory
-
-
Method Details
-
getBiInstantiator
public <S1,S2, BiInstantiator<S1,T> S2, getBiInstantiatorT> (Type target, Class<?> s1, Class<?> s2, List<InstantiatorDefinition> constructors, Map<Parameter, org.simpleflatmapper.util.BiFunction<? super S1, throws SecurityException? super S2, ?>> injections, boolean useAsmIfEnabled, boolean builderIgnoresNullValues) - Throws:
SecurityException
-
getBiInstantiator
public <S1,S2, BiInstantiator<S1,T> S2, getBiInstantiatorT> (InstantiatorDefinition instantiatorDefinition, Class<?> s1, Class<?> s2, Map<Parameter, org.simpleflatmapper.util.BiFunction<? super S1, ? super S2, ?>> injections, boolean useAsmIfEnabled, boolean builderIgnoresNullValues) -
getInstantiator
public <S,T> Instantiator<S,T> getInstantiator(Type target, Class<S> source, List<InstantiatorDefinition> constructors, Map<Parameter, Getter<? super S, throws SecurityException?>> injections, boolean useAsmIfEnabled, boolean builderIgnoresNullValues) - Throws:
SecurityException
-
getInstantiator
public <S,T> Instantiator<S,T> getInstantiator(InstantiatorDefinition instantiatorDefinition, Class<S> source, Map<Parameter, Getter<? super S, ?>> injections, boolean useAsmIfEnabled, boolean builderIgnoresNullValues) -
builderBiInstantiator
public <S1,S2, BuilderBiInstantiator<S1,T> S2, builderBiInstantiatorT> (BuilderInstantiatorDefinition instantiatorDefinition, Map<Parameter, org.simpleflatmapper.util.BiFunction<? super S1, ? super S2, ?>> injections, boolean useAsmIfEnabled, boolean builderIgnoresNullValues) -
getSmallerConstructor
public static InstantiatorDefinition getSmallerConstructor(List<InstantiatorDefinition> constructors, Set<Parameter> parameters) -
getArrayInstantiator
-
getArrayBiInstantiator
-
getOneArgIdentityInstantiator
public <S,T> Instantiator<S,T> getOneArgIdentityInstantiator(InstantiatorDefinition id, boolean builderIgnoresNullValues)
-