本文整理了Java中org.apache.tuscany.sca.interfacedef.Interface.setRemotable()
方法的一些代码示例,展示了Interface.setRemotable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Interface.setRemotable()
方法的具体详情如下:
包路径:org.apache.tuscany.sca.interfacedef.Interface
类名称:Interface
方法名:setRemotable
[英]Sets whether the interface is a remotable or local interface.
[中]设置接口是远程接口还是本地接口。
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
javaInterfaceContract.getInterface().setRemotable(Boolean.parseBoolean(remotable));
javaInterfaceContract.getInterface().setRemotableSetFromSCDL();
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
private boolean supportsCallbackInterface(Interface iface, JavaImplementation impl) {
if (iface instanceof JavaInterface) {
Class<?> ifaceClass = ((JavaInterface)iface).getJavaClass();
if (ifaceClass.isAssignableFrom(impl.getJavaClass())) {
return true;
}
}
try {
Interface implType = javaInterfaceFactory.createJavaInterface(impl.getJavaClass());
// Ignore the remotable/conversational testing
implType.setRemotable(iface.isRemotable());
return interfaceContractMapper.isCompatibleSubset(iface, implType);
} catch (InvalidInterfaceException e) {
logger.log(Level.WARNING, e.getMessage(), e);
return false;
}
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
private org.apache.tuscany.sca.assembly.Service createService(Class<?> interfaze) throws InvalidInterfaceException {
org.apache.tuscany.sca.assembly.Service service = assemblyFactory.createService();
service.setName(interfaze.getSimpleName());
JavaInterfaceContract interfaceContract = javaInterfaceFactory.createJavaInterfaceContract();
service.setInterfaceContract(interfaceContract);
JavaInterface callInterface = javaInterfaceFactory.createJavaInterface(interfaze);
service.getInterfaceContract().setInterface(callInterface);
if (callInterface.getCallbackClass() != null) {
JavaInterface callbackInterface = javaInterfaceFactory.createJavaInterface(callInterface.getCallbackClass());
service.getInterfaceContract().setCallbackInterface(callbackInterface);
}
Interface javaInterface = service.getInterfaceContract().getInterface();
javaInterface.setRemotable(interfaze.getAnnotation(Remotable.class) != null);
service.getInterfaceContract().setInterface(javaInterface);
return service;
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-interface-java
javaInterfaceContract.getInterface().setRemotable(Boolean.parseBoolean(remotable));
javaInterfaceContract.getInterface().setRemotableSetFromSCDL();
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
service.getInterfaceContract().getInterface().setRemotable(true);
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
if (bottomInterfaceContract.getInterface().isRemotable() == false &&
topInterfaceContract.getInterface().isRemotable() == true){
bottomInterfaceContract.getInterface().setRemotable(true);
代码示例来源:origin: org.apache.tuscany.sca/tuscany-builder
if (bottomInterfaceContract.getInterface().isRemotable() == false &&
topInterfaceContract.getInterface().isRemotable() == true){
bottomInterfaceContract.getInterface().setRemotable(true);
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
if (bottomInterfaceContract.getInterface().isRemotable() == false &&
topInterfaceContract.getInterface().isRemotable() == true){
bottomInterfaceContract.getInterface().setRemotable(true);
代码示例来源:origin: org.apache.tuscany.sca/tuscany-builder
if (bottomInterfaceContract.getInterface().isRemotable() == false &&
topInterfaceContract.getInterface().isRemotable() == true){
bottomInterfaceContract.getInterface().setRemotable(true);
内容来源于网络,如有侵权,请联系作者删除!