Java 类org.springframework.data.repository.support.DomainClassConverter 实例源码

项目:bookManager    文件:ServletApplicationContextConfig.java   
@Override
public void addFormatters(FormatterRegistry registry) {
    if (!(registry instanceof FormattingConversionService)) {
        log.warn("Unable to register Spring Data Jpa converter");
        return;
    }

    DomainClassConverter<FormattingConversionService> converter = new DomainClassConverter<FormattingConversionService>(
            (FormattingConversionService) registry);
    converter.setApplicationContext(this.context);
}
项目:java-platform    文件:WebConfiguration.java   
@Override
public void addFormatters(FormatterRegistry registry) {
    registry.addFormatter(DistanceFormatter.INSTANCE);
    registry.addFormatter(PointFormatter.INSTANCE);

    if (!(registry instanceof FormattingConversionService)) {
        return;
    }

    FormattingConversionService conversionService = (FormattingConversionService) registry;

    DomainClassConverter<FormattingConversionService> converter = new DomainClassConverter<FormattingConversionService>(conversionService);
    converter.setApplicationContext(context);
}
项目:jandy    文件:JandyApplicationServer.java   
@Bean
public DomainClassConverter domainClassConverter(ConversionService conversionService) {
  return new DomainClassConverter(conversionService);
}
项目:elasticSearchKata    文件:RestConfig.java   
@Bean
public DomainClassConverter<FormattingConversionService> domainClassConverter() {
    return new DomainClassConverter<>(mvcConversionService());
}
项目:b4    文件:B4CoreWebConfig.java   
@Bean
public DomainClassConverter<?> domainClassConverter() {
    return new DomainClassConverter<FormattingConversionService>(conversionService);
}
项目:github-cla-integration    文件:WebConfiguration.java   
@Bean
public DomainClassConverter<?> domainClassConverter(ConfigurableConversionService conversionService) {
    return new DomainClassConverter<>(conversionService);
}