Search in sources :

Example 11 with BindingConverterFactory

use of com.alipay.sofa.runtime.spi.service.BindingConverterFactory in project sofa-boot by sofastack.

the class RuntimeConfiguration method bindingConverterFactory.

@Bean
public static BindingConverterFactory bindingConverterFactory() {
    BindingConverterFactory bindingConverterFactory = new BindingConverterFactoryImpl();
    bindingConverterFactory.addBindingConverters(getClassesByServiceLoader(BindingConverter.class));
    return bindingConverterFactory;
}
Also used : BindingConverterFactory(com.alipay.sofa.runtime.spi.service.BindingConverterFactory) BindingConverterFactoryImpl(com.alipay.sofa.runtime.service.impl.BindingConverterFactoryImpl) BindingConverter(com.alipay.sofa.runtime.spi.service.BindingConverter) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

BindingConverterFactoryImpl (com.alipay.sofa.runtime.service.impl.BindingConverterFactoryImpl)11 BindingConverter (com.alipay.sofa.runtime.spi.service.BindingConverter)11 BindingConverterFactory (com.alipay.sofa.runtime.spi.service.BindingConverterFactory)11 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)8 Bean (org.springframework.context.annotation.Bean)8 BoltBindingConverter (com.alipay.sofa.rpc.boot.runtime.converter.BoltBindingConverter)2 RpcBindingConverter (com.alipay.sofa.rpc.boot.runtime.converter.RpcBindingConverter)2 Test (org.junit.Test)2