Search in sources :

Example 26 with RpcBindingParam

use of com.alipay.sofa.rpc.boot.runtime.param.RpcBindingParam in project sofa-boot by sofastack.

the class BoltBindingConverter method convert.

@Override
public RpcBinding convert(SofaService sofaServiceAnnotation, SofaServiceBinding sofaServiceBindingAnnotation, BindingConverterContext bindingConverterContext) {
    RpcBindingParam bindingParam = new BoltBindingParam();
    convertServiceAnnotation(bindingParam, sofaServiceAnnotation, sofaServiceBindingAnnotation, bindingConverterContext);
    return new BoltBinding(bindingParam, bindingConverterContext.getApplicationContext(), bindingConverterContext.isInBinding());
}
Also used : BoltBinding(com.alipay.sofa.rpc.boot.runtime.binding.BoltBinding) RpcBindingParam(com.alipay.sofa.rpc.boot.runtime.param.RpcBindingParam) BoltBindingParam(com.alipay.sofa.rpc.boot.runtime.param.BoltBindingParam)

Example 27 with RpcBindingParam

use of com.alipay.sofa.rpc.boot.runtime.param.RpcBindingParam in project sofa-boot by sofastack.

the class DubboBindingConverter method convert.

@Override
public RpcBinding convert(SofaReference sofaReferenceAnnotation, SofaReferenceBinding sofaReferenceBindingAnnotation, BindingConverterContext bindingConverterContext) {
    RpcBindingParam bindingParam = new DubboBindingParam();
    convertReferenceAnnotation(bindingParam, sofaReferenceBindingAnnotation, bindingConverterContext);
    return new DubboBinding(bindingParam, bindingConverterContext.getApplicationContext(), bindingConverterContext.isInBinding());
}
Also used : DubboBindingParam(com.alipay.sofa.rpc.boot.runtime.param.DubboBindingParam) DubboBinding(com.alipay.sofa.rpc.boot.runtime.binding.DubboBinding) RpcBindingParam(com.alipay.sofa.rpc.boot.runtime.param.RpcBindingParam)

Example 28 with RpcBindingParam

use of com.alipay.sofa.rpc.boot.runtime.param.RpcBindingParam in project sofa-boot by sofastack.

the class DubboBindingConverter method convert.

@Override
public RpcBinding convert(SofaService sofaServiceAnnotation, SofaServiceBinding sofaServiceBindingAnnotation, BindingConverterContext bindingConverterContext) {
    RpcBindingParam bindingParam = new DubboBindingParam();
    convertServiceAnnotation(bindingParam, sofaServiceAnnotation, sofaServiceBindingAnnotation, bindingConverterContext);
    return new DubboBinding(bindingParam, bindingConverterContext.getApplicationContext(), bindingConverterContext.isInBinding());
}
Also used : DubboBindingParam(com.alipay.sofa.rpc.boot.runtime.param.DubboBindingParam) DubboBinding(com.alipay.sofa.rpc.boot.runtime.binding.DubboBinding) RpcBindingParam(com.alipay.sofa.rpc.boot.runtime.param.RpcBindingParam)

Example 29 with RpcBindingParam

use of com.alipay.sofa.rpc.boot.runtime.param.RpcBindingParam in project sofa-boot by sofastack.

the class H2cBindingConverter method convert.

@Override
public RpcBinding convert(SofaService sofaServiceAnnotation, SofaServiceBinding sofaServiceBindingAnnotation, BindingConverterContext bindingConverterContext) {
    RpcBindingParam bindingParam = new H2cBindingParam();
    convertServiceAnnotation(bindingParam, sofaServiceAnnotation, sofaServiceBindingAnnotation, bindingConverterContext);
    return new H2cBinding(bindingParam, bindingConverterContext.getApplicationContext(), bindingConverterContext.isInBinding());
}
Also used : H2cBinding(com.alipay.sofa.rpc.boot.runtime.binding.H2cBinding) H2cBindingParam(com.alipay.sofa.rpc.boot.runtime.param.H2cBindingParam) RpcBindingParam(com.alipay.sofa.rpc.boot.runtime.param.RpcBindingParam)

Example 30 with RpcBindingParam

use of com.alipay.sofa.rpc.boot.runtime.param.RpcBindingParam in project sofa-boot by sofastack.

the class H2cBindingConverter method convert.

@Override
public RpcBinding convert(SofaReference sofaReferenceAnnotation, SofaReferenceBinding sofaReferenceBindingAnnotation, BindingConverterContext bindingConverterContext) {
    RpcBindingParam bindingParam = new H2cBindingParam();
    convertReferenceAnnotation(bindingParam, sofaReferenceBindingAnnotation, bindingConverterContext);
    return new H2cBinding(bindingParam, bindingConverterContext.getApplicationContext(), bindingConverterContext.isInBinding());
}
Also used : H2cBinding(com.alipay.sofa.rpc.boot.runtime.binding.H2cBinding) H2cBindingParam(com.alipay.sofa.rpc.boot.runtime.param.H2cBindingParam) RpcBindingParam(com.alipay.sofa.rpc.boot.runtime.param.RpcBindingParam)

Aggregations

RpcBindingParam (com.alipay.sofa.rpc.boot.runtime.param.RpcBindingParam)34 BoltBinding (com.alipay.sofa.rpc.boot.runtime.binding.BoltBinding)6 BoltBindingParam (com.alipay.sofa.rpc.boot.runtime.param.BoltBindingParam)6 DubboBinding (com.alipay.sofa.rpc.boot.runtime.binding.DubboBinding)4 H2cBinding (com.alipay.sofa.rpc.boot.runtime.binding.H2cBinding)4 HttpBinding (com.alipay.sofa.rpc.boot.runtime.binding.HttpBinding)4 RestBinding (com.alipay.sofa.rpc.boot.runtime.binding.RestBinding)4 TripleBinding (com.alipay.sofa.rpc.boot.runtime.binding.TripleBinding)4 DubboBindingParam (com.alipay.sofa.rpc.boot.runtime.param.DubboBindingParam)4 H2cBindingParam (com.alipay.sofa.rpc.boot.runtime.param.H2cBindingParam)4 HttpBindingParam (com.alipay.sofa.rpc.boot.runtime.param.HttpBindingParam)4 RestBindingParam (com.alipay.sofa.rpc.boot.runtime.param.RestBindingParam)4 TripleBindingParam (com.alipay.sofa.rpc.boot.runtime.param.TripleBindingParam)4 ApplicationConfig (com.alipay.sofa.rpc.config.ApplicationConfig)4 MethodConfig (com.alipay.sofa.rpc.config.MethodConfig)4 RegistryConfig (com.alipay.sofa.rpc.config.RegistryConfig)4 Filter (com.alipay.sofa.rpc.filter.Filter)4 SofaBootRpcRuntimeException (com.alipay.sofa.rpc.boot.common.SofaBootRpcRuntimeException)2 RpcBinding (com.alipay.sofa.rpc.boot.runtime.binding.RpcBinding)2 ConsumerConfig (com.alipay.sofa.rpc.config.ConsumerConfig)2