Class DomainClassResolver
java.lang.Object
org.springframework.data.rest.webmvc.support.DomainClassResolver
Resolves a domain class from a web request. Domain class resolution is only available for
web
requests
related to mapped and exported Repositories
.- Since:
- 2.6
- Author:
- Mark Paluch, Oliver Gierke
-
Method Summary
Modifier and TypeMethodDescriptionstatic DomainClassResolver
of
(org.springframework.data.repository.support.Repositories repositories, ResourceMappings mappings, BaseUri baseUri) Class<?>
Resolves a domain class that is associated with theNativeWebRequest
-
Method Details
-
of
public static DomainClassResolver of(org.springframework.data.repository.support.Repositories repositories, ResourceMappings mappings, BaseUri baseUri) -
resolve
public Class<?> resolve(Method method, org.springframework.web.context.request.NativeWebRequest webRequest) Resolves a domain class that is associated with theNativeWebRequest
- Parameters:
method
- must not be null.webRequest
- must not be null.- Returns:
- domain type that is associated with this request or null if no domain class can be resolved.
-