Class BestConstructorInstantiator
java.lang.Object
pl.pojo.tester.internal.instantiator.BestConstructorInstantiator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Class<?> protected final org.apache.commons.collections4.MultiValuedMap<Class<?>, ConstructorParameters> -
Constructor Summary
ConstructorsConstructorDescriptionBestConstructorInstantiator(Class<?> clazz, org.apache.commons.collections4.MultiValuedMap<Class<?>, ConstructorParameters> constructorParameters) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected Objectprotected ObjectcreateObjectFromArgsConstructor(Class<?>[] parameterTypes, Object[] parameters) protected ObjectcreateObjectFromConstructor(Constructor<?> constructor) protected ObjectcreateObjectFromNoArgsConstructor(Constructor<?> constructor) protected ObjectInstantiationExceptionprotected Object
-
Field Details
-
clazz
-
constructorParameters
protected final org.apache.commons.collections4.MultiValuedMap<Class<?>,ConstructorParameters> constructorParameters
-
-
Constructor Details
-
BestConstructorInstantiator
public BestConstructorInstantiator(Class<?> clazz, org.apache.commons.collections4.MultiValuedMap<Class<?>, ConstructorParameters> constructorParameters)
-
-
Method Details
-
instantiate
-
canInstantiate
public boolean canInstantiate() -
createObjectInstantiationException
-
createObjectFromArgsConstructor
-
createObjectFromNoArgsConstructor
-
instantiateUsingUserParameters
-
createFindingBestConstructor
-
createObjectFromConstructor
-