java.lang.Object |
↳ |
org.springframework.expression.spel.support.ReflectiveConstructorResolver |
Class Overview
A constructor resolver that uses reflection to locate the constructor that should be invoked
Public Constructors
public
ReflectiveConstructorResolver
()
Public Methods
Locate a constructor on the type. There are three kinds of match that might occur:
- An exact match where the types of the arguments match the types of the constructor
- An in-exact match where the types we are looking for are subtypes of those defined on the constructor
- A match where we are able to convert the arguments into those expected by the constructor, according to the
registered type converter.
Parameters
context
| the current evaluation context |
typename
| the type upon which to look for the constructor |
argumentTypes
| the arguments that the constructor must be able to handle |
Returns
- a ConstructorExecutor that can invoke the constructor, or null if non found