Examples of InOutService


Examples of org.switchyard.metadata.InOutService

     *
     * @param serviceName The Service name.
     * @param serviceHandler The service handler.
     */
    public void registerInOutService(String serviceName, ExchangeHandler serviceHandler) {
        getServiceDomain().registerService(createQName(serviceName), new InOutService(), serviceHandler);
    }
View Full Code Here

Examples of org.switchyard.metadata.InOutService

                validateEsbInterface(esbIntf);
                if (esbIntf.getOutputType() == null) {
                    serviceInterface = new InOnlyService(new InOnlyOperation(
                            ServiceInterface.DEFAULT_OPERATION, esbIntf.getInputType()));
                } else {
                    serviceInterface = new InOutService(new InOutOperation(
                            ServiceInterface.DEFAULT_OPERATION,
                            esbIntf.getInputType(), esbIntf.getOutputType(), esbIntf.getFaultType()));
                }
            }
        }
View Full Code Here

Examples of org.switchyard.metadata.InOutService

    @Test
    public void testReferenceEvents() {
        _domain.addEventObserver(_observer, ReferenceRegistrationEvent.class)
            .addEventObserver(_observer, ReferenceUnregistrationEvent.class);
       
        ServiceReference ref = _domain.registerServiceReference(new QName("test"), new InOutService());
        Assert.assertTrue(_observer.referenceRegistrationCalled);
        ref.unregister();
        Assert.assertTrue(_observer.referenceUnregistrationCalled);
    }
View Full Code Here

Examples of org.switchyard.metadata.InOutService

    @Test
    public void testServiceEvents() {
        _domain.addEventObserver(_observer, ServiceRegistrationEvent.class)
            .addEventObserver(_observer, ServiceUnregistrationEvent.class);
       
        Service service = _domain.registerService(new QName("test"), new InOutService(), new BaseHandler());
        Assert.assertTrue(_observer.serviceRegistrationCalled);
        service.unregister();
        Assert.assertTrue(_observer.serviceUnregistrationCalled);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.