Search in sources :

Example 1 with ConversionServiceFactoryBean

use of org.springframework.context.support.ConversionServiceFactoryBean in project spring-security-oauth by spring-projects.

the class WebMvcConfig method conversionService.

@Bean
public ConversionServiceFactoryBean conversionService() {
    ConversionServiceFactoryBean conversionService = new ConversionServiceFactoryBean();
    conversionService.setConverters(Collections.singleton(new AccessTokenRequestConverter()));
    return conversionService;
}
Also used : ConversionServiceFactoryBean(org.springframework.context.support.ConversionServiceFactoryBean) AccessTokenRequestConverter(org.springframework.security.oauth.examples.tonr.converter.AccessTokenRequestConverter) ContentNegotiationManagerFactoryBean(org.springframework.web.accept.ContentNegotiationManagerFactoryBean) Bean(org.springframework.context.annotation.Bean) ConversionServiceFactoryBean(org.springframework.context.support.ConversionServiceFactoryBean)

Aggregations

Bean (org.springframework.context.annotation.Bean)1 ConversionServiceFactoryBean (org.springframework.context.support.ConversionServiceFactoryBean)1 AccessTokenRequestConverter (org.springframework.security.oauth.examples.tonr.converter.AccessTokenRequestConverter)1 ContentNegotiationManagerFactoryBean (org.springframework.web.accept.ContentNegotiationManagerFactoryBean)1