Interface Provider<T>

  • Type Parameters:
    T - type to provide
    All Known Implementing Classes:
    AbstractProvider

    public interface Provider<T>
    Provides instances of type T.
    • Method Detail

      • get

        T get​(Provider.ProvisionRequest<T> request)
        Returns an instance of the requested type T else null if the requested type cannot be provided. If null is returned ModelMapper will construct the requested type.
        Parameters:
        request - information
        Throws:
        MappingException - if an error occurs while providing the requested type