Module storm

Interface ObjectMapper<T>

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 Type
    Method
    Description
    Class<?>[]
    Returns the parameter types of the constructor used to create instances.
    Creates a new instance of the type.
  • Method Details

    • getParameterTypes

      Class<?>[] getParameterTypes() throws SqlTemplateException
      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

      T newInstance(@Nonnull Object[] args) throws SqlTemplateException
      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.