|
69 | 69 | import org.springframework.data.rest.core.support.RepositoryRelProvider; |
70 | 70 | import org.springframework.data.rest.core.support.SelfLinkProvider; |
71 | 71 | import org.springframework.data.rest.core.support.UnwrappingRepositoryInvokerFactory; |
72 | | -import org.springframework.data.rest.webmvc.BasePathAwareController; |
73 | | -import org.springframework.data.rest.webmvc.BasePathAwareHandlerMapping; |
74 | | -import org.springframework.data.rest.webmvc.BaseUri; |
75 | | -import org.springframework.data.rest.webmvc.EmbeddedResourcesAssembler; |
76 | | -import org.springframework.data.rest.webmvc.HttpHeadersPreparer; |
77 | | -import org.springframework.data.rest.webmvc.ProfileResourceProcessor; |
78 | | -import org.springframework.data.rest.webmvc.RepositoryRestController; |
79 | | -import org.springframework.data.rest.webmvc.RepositoryRestExceptionHandler; |
80 | | -import org.springframework.data.rest.webmvc.RepositoryRestHandlerAdapter; |
81 | | -import org.springframework.data.rest.webmvc.RepositoryRestHandlerMapping; |
82 | | -import org.springframework.data.rest.webmvc.RestMediaTypes; |
83 | | -import org.springframework.data.rest.webmvc.ServerHttpRequestMethodArgumentResolver; |
| 72 | +import org.springframework.data.rest.webmvc.*; |
84 | 73 | import org.springframework.data.rest.webmvc.alps.AlpsJsonHttpMessageConverter; |
85 | 74 | import org.springframework.data.rest.webmvc.alps.RootResourceInformationToAlpsDescriptorConverter; |
86 | 75 | import org.springframework.data.rest.webmvc.convert.UriListHttpMessageConverter; |
87 | | -import org.springframework.data.rest.webmvc.json.DomainObjectReader; |
88 | | -import org.springframework.data.rest.webmvc.json.EnumTranslator; |
89 | | -import org.springframework.data.rest.webmvc.json.Jackson2DatatypeHelper; |
90 | | -import org.springframework.data.rest.webmvc.json.JacksonMappingAwareSortTranslator; |
91 | | -import org.springframework.data.rest.webmvc.json.JacksonSerializers; |
92 | | -import org.springframework.data.rest.webmvc.json.MappingAwareDefaultedPageableArgumentResolver; |
93 | | -import org.springframework.data.rest.webmvc.json.MappingAwarePageableArgumentResolver; |
94 | | -import org.springframework.data.rest.webmvc.json.MappingAwareSortArgumentResolver; |
95 | | -import org.springframework.data.rest.webmvc.json.PersistentEntityJackson2Module; |
| 76 | +import org.springframework.data.rest.webmvc.json.*; |
96 | 77 | import org.springframework.data.rest.webmvc.json.PersistentEntityJackson2Module.LookupObjectSerializer; |
97 | | -import org.springframework.data.rest.webmvc.json.PersistentEntityToJsonSchemaConverter; |
98 | 78 | import org.springframework.data.rest.webmvc.json.PersistentEntityToJsonSchemaConverter.ValueTypeSchemaPropertyCustomizerFactory; |
99 | 79 | import org.springframework.data.rest.webmvc.mapping.Associations; |
100 | 80 | import org.springframework.data.rest.webmvc.mapping.LinkCollector; |
@@ -215,7 +195,6 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon |
215 | 195 | private Lazy<ServerHttpRequestMethodArgumentResolver> serverHttpRequestMethodArgumentResolver; |
216 | 196 | private Lazy<ETagArgumentResolver> eTagArgumentResolver; |
217 | 197 | private Lazy<RepositoryInvokerFactory> repositoryInvokerFactory; |
218 | | - private Lazy<MetadataConfiguration> metadataConfiguration; |
219 | 198 | private Lazy<RepositoryRestConfiguration> repositoryRestConfiguration; |
220 | 199 | private Lazy<HateoasPageableHandlerMethodArgumentResolver> pageableResolver; |
221 | 200 | private Lazy<HateoasSortHandlerMethodArgumentResolver> sortResolver; |
@@ -278,7 +257,6 @@ public RepositoryRestMvcConfiguration( // |
278 | 257 | this.eTagArgumentResolver = Lazy.of(() -> context.getBean(ETagArgumentResolver.class)); |
279 | 258 | this.repositoryInvokerFactory = Lazy.of(() -> new UnwrappingRepositoryInvokerFactory( |
280 | 259 | new DefaultRepositoryInvokerFactory(repositories.get(), defaultConversionService), getEntityLookups())); |
281 | | - this.metadataConfiguration = Lazy.of(() -> context.getBean(MetadataConfiguration.class)); |
282 | 260 |
|
283 | 261 | this.defaultConversionService = new DefaultFormattingConversionService(); |
284 | 262 | this.configurerDelegate = Lazy.of(() -> context.getBean(RepositoryRestConfigurerDelegate.class)); |
|
0 commit comments