作者:schell | 来源:互联网 | 2023-09-15 08:43
本文整理了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();