- Type Parameters:
T- The type of the instance to create.
public interface ObjectMapper<T>
Mapper for creating instances of a specific type.
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>[]Returns the parameter types of the constructor used to create instances.newInstance(Object[] args) Creates a new instance of the type.
-
Method Details
-
getParameterTypes
Returns the parameter types of the constructor used to create instances.- Returns:
- the parameter types of the constructor used to create instances.
- Throws:
SqlTemplateException- if the parameter types could not be determined.
-
newInstance
Creates a new instance of the type.- Parameters:
args- the arguments to pass to the constructor.- Returns:
- a new instance of the type.
- Throws:
SqlTemplateException- if the instance could not be created.
-