42
42
import org .springframework .context .support .ReloadableResourceBundleMessageSource ;
43
43
import org .springframework .core .Ordered ;
44
44
import org .springframework .core .convert .ConversionService ;
45
- import org .springframework .core .convert .support .ConfigurableConversionService ;
46
45
import org .springframework .core .io .ClassPathResource ;
47
46
import org .springframework .data .auditing .AuditableBeanWrapperFactory ;
48
47
import org .springframework .data .auditing .MappingAuditableBeanWrapperFactory ;
@@ -231,7 +230,6 @@ public DefaultFormattingConversionService defaultConversionService() {
231
230
addFormatters (conversionService );
232
231
233
232
configurerDelegate .configureConversionService (conversionService );
234
- configureConversionService (conversionService );
235
233
236
234
return conversionService ;
237
235
}
@@ -246,7 +244,6 @@ public ValidatingRepositoryEventListener validatingRepositoryEventListener(
246
244
247
245
ValidatingRepositoryEventListener listener = new ValidatingRepositoryEventListener (entities );
248
246
configurerDelegate .configureValidatingRepositoryEventListener (listener );
249
- configureValidatingRepositoryEventListener (listener );
250
247
251
248
return listener ;
252
249
}
@@ -276,7 +273,6 @@ public RepositoryRestConfiguration config() {
276
273
RepositoryRestConfiguration config = new RepositoryRestConfiguration (configuration , metadataConfiguration (),
277
274
enumTranslator ());
278
275
configurerDelegate .configureRepositoryRestConfiguration (config );
279
- configureRepositoryRestConfiguration (config );
280
276
281
277
return config ;
282
278
}
@@ -677,7 +673,6 @@ public ExceptionHandlerExceptionResolver exceptionHandlerExceptionResolver() {
677
673
er .setMessageConverters (defaultMessageConverters ());
678
674
679
675
configurerDelegate .configureExceptionHandlerExceptionResolver (er );
680
- configureExceptionHandlerExceptionResolver (er );
681
676
682
677
return er ;
683
678
}
@@ -718,7 +713,6 @@ public List<HttpMessageConverter<?>> defaultMessageConverters() {
718
713
messageConverters .add (uriListHttpMessageConverter ());
719
714
720
715
configurerDelegate .configureHttpMessageConverters (messageConverters );
721
- configureHttpMessageConverters (messageConverters );
722
716
723
717
return messageConverters ;
724
718
}
@@ -843,7 +837,6 @@ protected ObjectMapper basicObjectMapper() {
843
837
Jackson2DatatypeHelper .configureObjectMapper (objectMapper );
844
838
// Configure custom Modules
845
839
configurerDelegate .configureJacksonObjectMapper (objectMapper );
846
- configureJacksonObjectMapper (objectMapper );
847
840
848
841
return objectMapper ;
849
842
}
@@ -938,70 +931,4 @@ public int getOrder() {
938
931
return order ;
939
932
}
940
933
}
941
-
942
- /**
943
- * Override this method to add additional configuration.
944
- *
945
- * @param config Main configuration bean.
946
- * @deprecated since 2.4, implement
947
- * {@link RepositoryRestConfigurer#configureRepositoryRestConfiguration(RepositoryRestConfiguration)}
948
- * either directly or extend {@link RepositoryRestConfigurerAdapter} and override the method.
949
- */
950
- @ Deprecated
951
- protected void configureRepositoryRestConfiguration (RepositoryRestConfiguration config ) {}
952
-
953
- /**
954
- * Override this method to add your own converters.
955
- *
956
- * @param conversionService Default ConversionService bean.
957
- * @deprecated since 2.4, implement
958
- * {@link RepositoryRestConfigurer#configureConversionService(ConfigurableConversionService)} either
959
- * directly or extend {@link RepositoryRestConfigurerAdapter} and override the method.
960
- */
961
- @ Deprecated
962
- protected void configureConversionService (ConfigurableConversionService conversionService ) {}
963
-
964
- /**
965
- * Override this method to add validators manually.
966
- *
967
- * @param validatingListener The {@link org.springframework.context.ApplicationListener} responsible for invoking
968
- * {@link org.springframework.validation.Validator} instances.
969
- * @deprecated since 2.4, implement
970
- * {@link RepositoryRestConfigurer#configureValidatingRepositoryEventListener(ValidatingRepositoryEventListener)}
971
- * either directly or extend {@link RepositoryRestConfigurerAdapter} and override the method.
972
- */
973
- @ Deprecated
974
- protected void configureValidatingRepositoryEventListener (ValidatingRepositoryEventListener validatingListener ) {}
975
-
976
- /**
977
- * Configure the {@link ExceptionHandlerExceptionResolver}.
978
- *
979
- * @param exceptionResolver The default exception resolver on which you can add custom argument resolvers.
980
- * @deprecated since 2.4, implement
981
- * {@link RepositoryRestConfigurer#configureExceptionHandlerExceptionResolver(ExceptionHandlerExceptionResolver)}
982
- * either directly or extend {@link RepositoryRestConfigurerAdapter} and override the method.
983
- */
984
- @ Deprecated
985
- protected void configureExceptionHandlerExceptionResolver (ExceptionHandlerExceptionResolver exceptionResolver ) {}
986
-
987
- /**
988
- * Configure the available {@link HttpMessageConverter}s by adding your own.
989
- *
990
- * @param messageConverters The converters to be used by the system.
991
- * @deprecated since 2.4, implement {@link RepositoryRestConfigurer#configureHttpMessageConverters(List)} either
992
- * directly or extend {@link RepositoryRestConfigurerAdapter} and override the method.
993
- */
994
- @ Deprecated
995
- protected void configureHttpMessageConverters (List <HttpMessageConverter <?>> messageConverters ) {}
996
-
997
- /**
998
- * Configure the Jackson {@link ObjectMapper} directly.
999
- *
1000
- * @param objectMapper The {@literal ObjectMapper} to be used by the system.
1001
- * @deprecated since 2.4, implement {@link RepositoryRestConfigurer#configureJacksonObjectMapper(ObjectMapper)} either
1002
- * directly or extend {@link RepositoryRestConfigurerAdapter} and override the method.
1003
- */
1004
- @ Deprecated
1005
- protected void configureJacksonObjectMapper (ObjectMapper objectMapper ) {}
1006
-
1007
934
}
0 commit comments