public ClientProxyInvocationHandler(Class<?> invokerInterface) { _invokerInterface = JavaService.fromClass(invokerInterface); }
@Override protected Collection<org.switchyard.metadata.ServiceOperation> getInterfaceOperations(InterfaceModel interfaceModel) { return JavaService.fromClass(Classes.forName(interfaceModel.getInterface())).getOperations(); }
OperationTypeQNames operationTypeNames = new OperationTypeQNames(m); if (m.getReturnType().equals(Void.TYPE)) { ops.add(new InOnlyOperation(m.getName(), operationTypeNames.in())); } else { ops.add(new InOutOperation(m.getName(), operationTypeNames.in(), operationTypeNames.out(), operationTypeNames.fault())); return new JavaService(ops, serviceInterface);
JavaService javaService = JavaService.fromClass(rulesInterface); for (Method method : rulesClass.getDeclaredMethods()) { RulesOperationType operationType = null; ServiceOperation serviceOperation = javaService.getOperation(method.getName()); if (serviceOperation != null) { OperationModel operationModel = new V1RulesOperationModel(rulesNamespace.uri());
final int paramCount = method.getParameterTypes().length; if ("toString".equals(methodName) && paramCount == 0) { return MessageFormat.format("SwitchYard proxy for {0} [{1}]", _invokerInterface.getJavaInterface(), _invokerInterface); } else if ("equals".equals(methodName) && paramCount == 1) { return this.equals(args[0]);
JavaService javaService = JavaService.fromClass(bpmInterface); for (Method method : bpmClass.getDeclaredMethods()) { BPMOperationType operationType = null; ServiceOperation serviceOperation = javaService.getOperation(method.getName()); if (serviceOperation != null) { OperationModel operationModel = new V1BPMOperationModel(bpmNamespace.uri());
public ClientProxyInvocationHandler(Class<?> invokerInterface) { _invokerInterface = JavaService.fromClass(invokerInterface); }
private Collection<org.switchyard.metadata.ServiceOperation> getInterfaceOperations(InterfaceModel interfaceModel) { if (interfaceModel == null || EsbInterfaceModel.ESB.equals(interfaceModel.getType())) { return Collections.emptySet(); } else if (InterfaceModel.JAVA.equals(interfaceModel.getType())) { return JavaService.fromClass(Classes.forName(interfaceModel.getInterface())).getOperations(); } else if (InterfaceModel.WSDL.equals(interfaceModel.getType())) { try { return WSDLService.fromWSDL(interfaceModel.getInterface()).getOperations(); } catch (WSDLReaderException e) { // not sure what should do here.. - service should not be deployed // so we won't collect metrics for it anyway return Collections.emptySet(); } } return Collections.emptySet(); }
OperationTypeQNames operationTypeNames = new OperationTypeQNames(m); if (m.getReturnType().equals(Void.TYPE)) { ops.add(new InOnlyOperation(m.getName(), operationTypeNames.in())); } else { ops.add(new InOutOperation(m.getName(), operationTypeNames.in(), operationTypeNames.out(), operationTypeNames.fault())); return new JavaService(ops, serviceInterface);
final int paramCount = method.getParameterTypes().length; if ("toString".equals(methodName) && paramCount == 0) { return MessageFormat.format("SwitchYard proxy for {0} [{1}]", _invokerInterface.getJavaInterface(), _invokerInterface); } else if ("equals".equals(methodName) && paramCount == 1) { return this.equals(args[0]);
JavaService javaService = JavaService.fromClass(bpmInterface); for (Method method : bpmClass.getDeclaredMethods()) { BPMOperationType operationType = null; ServiceOperation serviceOperation = javaService.getOperation(method.getName()); if (serviceOperation != null) { OperationModel operationModel = new V1BPMOperationModel(bpmNamespace.uri());
@Override public ServiceInterface getInterface() { return JavaService.fromClass(_serviceMetadata.getServiceClass()); }
JavaService javaService = JavaService.fromClass(bpmInterface); for (Method method : bpmClass.getDeclaredMethods()) { BPMOperationType operationType = null; ServiceOperation serviceOperation = javaService.getOperation(method.getName()); if (serviceOperation != null) { OperationModel operationModel = new V1BPMOperationModel(bpmNamespace.uri());
@Override public ServiceInterface getInterface() { return JavaService.fromClass(_serviceMetadata.getServiceClass()); }
@Test public void testRegisterServiceWithInterface() { Service service = _domain.registerService(new QName("my-interface"), JavaService.fromClass(MyInterface.class), new MockHandler()); // default interface should be used, which has one operation - process() Assert.assertNotNull(service.getInterface()); Assert.assertTrue(service.getInterface().getOperations().size() == 1); Assert.assertNotNull(service.getInterface().getOperation("myOperation")); }
throw BaseDeployMessages.MESSAGES.failedToLoadServiceInterface(interfaceClass); serviceInterface = JavaService.fromClass(serviceInterfaceType); } else if (InterfaceModel.WSDL.equals(intfModel.getType())) { try {