Interface Provider<T>

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

public interface Provider<T>
Provides instances of type T.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Contains provision request information.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns an instance of the requested type T else null if the requested type cannot be provided.
  • Method Details

    • 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