public final class ConstructorResolver
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
InjectableConstructor |
get(ErrorAttachable errors,
TypeReference<?> type)
Cached alternative method for
resolve(team.unnamed.inject.error.ErrorAttachable, team.unnamed.inject.key.TypeReference<?>, java.lang.Class<? extends java.lang.annotation.Annotation>),
this method always uses the Inject annotation to resolve the constructors |
InjectableConstructor |
resolve(ErrorAttachable errors,
TypeReference<?> type,
java.lang.Class<? extends java.lang.annotation.Annotation> annotation) |
public InjectableConstructor get(ErrorAttachable errors, TypeReference<?> type)
resolve(team.unnamed.inject.error.ErrorAttachable, team.unnamed.inject.key.TypeReference<?>, java.lang.Class<? extends java.lang.annotation.Annotation>),
this method always uses the Inject annotation to resolve the constructorserrors - The error attachabletype - The type to resolvepublic InjectableConstructor resolve(ErrorAttachable errors, TypeReference<?> type, java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
errors - The error attachabletype - The type to resolveannotation - The annotation to search fortype.
If no constructor annotated with the given annotation
is found, the default/empty constructor is used (constructor
without parameters)