Package org.modelmapper
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 ClassesModifier and TypeInterfaceDescriptionstatic interface
Contains provision request information. -
Method Summary
Modifier and TypeMethodDescriptionget
(Provider.ProvisionRequest<T> request) Returns an instance of the requested typeT
elsenull
if the requested type cannot be provided.
-
Method Details
-
get
Returns an instance of the requested typeT
elsenull
if the requested type cannot be provided. Ifnull
is returned ModelMapper will construct the requested type.- Parameters:
request
- information- Throws:
MappingException
- if an error occurs while providing the requested type
-