Search in sources :

Example 31 with RpcBindingParam

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

the class RestBindingConverter method convert.

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

Example 32 with RpcBindingParam

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

the class RestBindingConverter method convert.

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

Example 33 with RpcBindingParam

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

the class TripleBindingConverter method convert.

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

Example 34 with RpcBindingParam

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

the class TripleBindingConverter method convert.

@Override
public RpcBinding convert(SofaService sofaServiceAnnotation, SofaServiceBinding sofaServiceBindingAnnotation, BindingConverterContext bindingConverterContext) {
    RpcBindingParam bindingParam = new TripleBindingParam();
    convertServiceAnnotation(bindingParam, sofaServiceAnnotation, sofaServiceBindingAnnotation, bindingConverterContext);
    return new TripleBinding(bindingParam, bindingConverterContext.getApplicationContext(), bindingConverterContext.isInBinding());
}
Also used : TripleBinding(com.alipay.sofa.rpc.boot.runtime.binding.TripleBinding) TripleBindingParam(com.alipay.sofa.rpc.boot.runtime.param.TripleBindingParam) 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