Package org.modelmapper
Interface Provider<T>
-
- Type Parameters:
T
- type to provide
- All Known Implementing Classes:
AbstractProvider
public interface Provider<T>
Provides instances of typeT
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Provider.ProvisionRequest<T>
Contains provision request information.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
get(Provider.ProvisionRequest<T> request)
Returns an instance of the requested typeT
elsenull
if the requested type cannot be provided.
-
-
-
Method Detail
-
get
T get(Provider.ProvisionRequest<T> request)
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
-
-