热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.apache.tuscany.sca.interfacedef.java.JavaInterface.getOperations()方法的使用及代码示例

本文整理了Java中org.apache.tuscany.sca.interfacedef.java.JavaInterface.getOperations()方法的一

本文整理了Java中org.apache.tuscany.sca.interfacedef.java.JavaInterface.getOperations()方法的一些代码示例,展示了JavaInterface.getOperations()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JavaInterface.getOperations()方法的具体详情如下:
包路径:org.apache.tuscany.sca.interfacedef.java.JavaInterface
类名称:JavaInterface
方法名:getOperations

JavaInterface.getOperations介绍

暂无

代码示例

代码示例来源:origin: org.apache.tuscany.sca/tuscany-core-databinding

public void visitInterface(JavaInterface javaInterface) throws InvalidInterfaceException {
// Set the data types regardless in case the
// user overrides the remotable status in the SCDL
//if (!javaInterface.isRemotable()) {
// return;
//}
List operatiOns= javaInterface.getOperations();
processInterface(javaInterface, operations);
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

public void visitInterface(JavaInterface javaInterface) throws InvalidInterfaceException {
// Set the data types regardless in case the
// user overrides the remotable status in the SCDL
//if (!javaInterface.isRemotable()) {
// return;
//}
List operatiOns= javaInterface.getOperations();
processInterface(javaInterface, operations);
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

public void visitInterface(JavaInterface javaInterface) throws InvalidInterfaceException {
List validOperatiOns= new ArrayList();
List asyncOperatiOns= new ArrayList();
validOperations.addAll(javaInterface.getOperations());
for (Operation o : javaInterface.getOperations()) {
if (!o.getName().endsWith(ASYNC)) {
JavaOperation op = (JavaOperation)o;
if (op.getJavaMethod().getName().endsWith(ASYNC)) {
continue;
}
for (Operation asyncOp : getAsyncOperations(javaInterface.getOperations(), op)) {
if (isJAXWSAsyncPoolingOperation(op, asyncOp) || isJAXWSAsyncCallbackOperation(op, asyncOp)) {
validOperations.remove(asyncOp);
asyncOperations.add(asyncOp);
}
}
}
}
javaInterface.getOperations().clear();
javaInterface.getOperations().addAll(validOperations);
javaInterface.getAttributes().put("JAXWS-ASYNC-OPERATIONS", asyncOperations);
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-interface-java-jaxrs

public void visitInterface(JavaInterface contract) throws InvalidInterfaceException {
boolean hasJAXRSAnnotariOns= false;
for (Operation op : contract.getOperations()) {
final JavaOperation operation = (JavaOperation)op;
if (introspectHTTPMethod(operation)) {
hasJAXRSAnnotariOns= true;
}
}
// Always set JAX-RS annotated interfaces as remotables
if (hasJAXRSAnnotarions) {
contract.setRemotable(true);
}
}
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-interface-java

javaInterface.getOperations().addAll(getOperations(clazz, remotable, ns));

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

javaInterface.getOperations().addAll(getOperations(clazz, remotable, ns));

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

public void visitInterface(JavaInterface javaInterface) throws InvalidInterfaceException {
if (javaInterface.getJavaClass() != null) {
readIntentsAndPolicySets(javaInterface.getJavaClass(), javaInterface);
// Read intents on the service interface methods
List operatiOns= javaInterface.getOperations();
for (Operation op : operations) {
JavaOperation operation = (JavaOperation)op;
Method method = operation.getJavaMethod();

readIntents(method.getAnnotation(Requires.class), op.getRequiredIntents());
readSpecificIntents(method.getAnnotations(), op.getRequiredIntents());
readPolicySets(method.getAnnotation(PolicySets.class), op.getPolicySets());
readWebServicesAnnotations(method, javaInterface.getJavaClass(), javaInterface.getRequiredIntents());
inherit(javaInterface, op);
}
}


}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-interface-java

public void visitInterface(JavaInterface javaInterface) throws InvalidInterfaceException {
if (javaInterface.getJavaClass() != null) {
readIntentsAndPolicySets(javaInterface.getJavaClass(), javaInterface);
// Read intents on the service interface methods
List operatiOns= javaInterface.getOperations();
for (Operation op : operations) {
JavaOperation operation = (JavaOperation)op;
Method method = operation.getJavaMethod();

readIntents(method.getAnnotation(Requires.class), op.getRequiredIntents());
readSpecificIntents(method.getAnnotations(), op.getRequiredIntents());
readPolicySets(method.getAnnotation(PolicySets.class), op.getPolicySets());
readWebServicesAnnotations(method, javaInterface.getJavaClass(), javaInterface.getRequiredIntents());
inherit(javaInterface, op);
}
}


}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

for(Operation javaOperation : javaInterface.getOperations()){
for(Operation wsdlOperation : wsdlInterface.getOperations()){
if (wsdlOperation.getName().equals(javaOperation.getName())){

代码示例来源:origin: org.apache.tuscany.sca/tuscany-binding-ws-wsdlgen

for(Operation javaOperation : javaInterface.getOperations()){
for(Operation wsdlOperation : wsdlInterface.getOperations()){
if (wsdlOperation.getName().equals(javaOperation.getName())){

代码示例来源:origin: org.apache.tuscany.sca/tuscany-core-databinding

for (Operation operation : javaInterface.getOperations()) {
WrapperInfo inputWrapperInfo = operation.getInputWrapper();
WrapperInfo outputWrapperInfo = operation.getOutputWrapper();

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

for (Operation operation : javaInterface.getOperations()) {
WrapperInfo inputWrapperInfo = operation.getInputWrapper();
WrapperInfo outputWrapperInfo = operation.getOutputWrapper();

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

for (Operation op : javaInterface.getOperations()) {
JavaOperation operation = (JavaOperation) op;

代码示例来源:origin: org.apache.tuscany.sca/tuscany-core-databinding

for (Operation op : javaInterface.getOperations()) {
JavaOperation operation = (JavaOperation) op;

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

for (Iterator it = contract.getOperations().iterator(); it.hasNext();) {
final JavaOperation operation = (JavaOperation)it.next();
final Method method = operation.getJavaMethod();

推荐阅读
author-avatar
schell
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有