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 interfaceContains provision request information. -
Method Summary
Modifier and TypeMethodDescriptionget(Provider.ProvisionRequest<T> request) Returns an instance of the requested typeTelsenullif the requested type cannot be provided.
-
Method Details
-
get
Returns an instance of the requested typeTelsenullif the requested type cannot be provided. Ifnullis returned ModelMapper will construct the requested type.- Parameters:
request- information- Throws:
MappingException- if an error occurs while providing the requested type
-