public ClientProxyInvocationHandler(Class<?> invokerInterface) { _invokerInterface = JavaService.fromClass(invokerInterface); }
public ClientProxyInvocationHandler(Class<?> invokerInterface) { _invokerInterface = JavaService.fromClass(invokerInterface); }
@Override public ServiceInterface getInterface() { return JavaService.fromClass(_serviceMetadata.getServiceClass()); }
@Override public ServiceInterface getInterface() { return JavaService.fromClass(_serviceMetadata.getServiceClass()); }
@Override protected Collection<org.switchyard.metadata.ServiceOperation> getInterfaceOperations(InterfaceModel interfaceModel) { return JavaService.fromClass(Classes.forName(interfaceModel.getInterface())).getOperations(); }
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(); }
@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 {
JavaService javaService = JavaService.fromClass(rulesInterface); for (Method method : rulesClass.getDeclaredMethods()) { RulesOperationType operationType = null;
JavaService javaService = JavaService.fromClass(bpmInterface); for (Method method : bpmClass.getDeclaredMethods()) { BPMOperationType operationType = null;
JavaService javaService = JavaService.fromClass(bpmInterface); for (Method method : bpmClass.getDeclaredMethods()) { BPMOperationType operationType = null;
JavaService javaService = JavaService.fromClass(bpmInterface); for (Method method : bpmClass.getDeclaredMethods()) { BPMOperationType operationType = null;