Interface Super.ConstructorResolver
- All Known Implementing Classes:
Super.ConstructorResolver.Default
- Enclosing class:
Super
public static interface Super.ConstructorResolver
A constructor resolver is responsible to specify the constructor to be used for creating a proxy.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
A default constructor resolver that attempts to resolve a constructor with the given argument types. -
Method Summary
Modifier and TypeMethodDescriptionresolve
(TypeDescription proxiedType, List<TypeDescription> constructorParameters) Resolves the constructor to be used.
-
Method Details
-
resolve
MethodDescription.InDefinedShape resolve(TypeDescription proxiedType, List<TypeDescription> constructorParameters) Resolves the constructor to be used.- Parameters:
proxiedType
- The type being proxied.constructorParameters
- The types being specified on the annotation.- Returns:
- The constructor to invoke with default arguments for instantiation.
-