use of org.apache.servicecomb.provider.pojo.definition.PojoConsumerOperationMeta in project java-chassis by ServiceComb.
the class PojoInvocationCreator method create.
public PojoInvocation create(Method method, PojoConsumerMetaRefresher metaRefresher, Object[] args) {
PojoConsumerMeta pojoConsumerMeta = metaRefresher.getLatestMeta();
PojoConsumerOperationMeta consumerOperationMeta = pojoConsumerMeta.ensureFindOperationMeta(method);
PojoInvocation invocation = new PojoInvocation(consumerOperationMeta);
invocation.setSuccessResponseType(consumerOperationMeta.getResponsesType());
invocation.setInvocationArguments(consumerOperationMeta.getSwaggerConsumerOperation().toInvocationArguments(args));
invocation.setSync(consumerOperationMeta.isSync());
return invocation;
}
use of org.apache.servicecomb.provider.pojo.definition.PojoConsumerOperationMeta in project incubator-servicecomb-java-chassis by apache.
the class PojoInvocationCreator method create.
public PojoInvocation create(Method method, PojoConsumerMetaRefresher metaRefresher, Object[] args) {
PojoConsumerMeta pojoConsumerMeta = metaRefresher.getLatestMeta();
PojoConsumerOperationMeta consumerOperationMeta = pojoConsumerMeta.ensureFindOperationMeta(method);
PojoInvocation invocation = new PojoInvocation(consumerOperationMeta);
invocation.setSuccessResponseType(consumerOperationMeta.getResponsesType());
invocation.setInvocationArguments(consumerOperationMeta.getSwaggerConsumerOperation().toInvocationArguments(args));
invocation.setSync(consumerOperationMeta.isSync());
return invocation;
}
Aggregations