List of usage examples for org.springframework.core.env AbstractEnvironment getConversionService
@Override
public ConfigurableConversionService getConversionService()
From source file:guru.qas.martini.MartiniConfiguration.java
/** * @param environment Spring Environment * @param beanName name of Conversion Service bean Martini should utilize * @return specified, or Environment default, conversion service. *//*from w w w . ja va 2s . c om*/ @Lazy @Bean ConversionService getConversionService(AbstractEnvironment environment, @Value("${conversion.service.bean.name:#{null}}") String beanName) { return null == beanName ? environment.getConversionService() : beanFactory.getBean(beanName, ConversionService.class); }