Package org.switchyard.metadata

Examples of org.switchyard.metadata.ServiceInterface


        _mock.assertIsSatisfied();
    }

    public Exchange createExchange(MessageComposer<CamelBindingData> messageComposer) {
        QName serviceName = new QName("urn:test", "Service");
        ServiceInterface metadata = new InOnlyService(OPERATION_NAME);

        OutboundHandler handler = new OutboundHandler(_bindingModel, _camelContext, messageComposer, null) {
            {
                setState(State.STARTED);
            }
View Full Code Here


        BeanComponentActivator activator = new BeanComponentActivator();

        for (ServiceDescriptor serviceDescriptor : beanDeploymentMetaData.getServiceDescriptors()) {
            String serviceName = serviceDescriptor.getServiceName();
            ServiceProxyHandler handler = serviceDescriptor.getHandler();
            ServiceInterface serviceInterface;
            ServiceReference service;

            activator.lookupBeanMetaData();
            serviceInterface = activator.buildServiceInterface(serviceName);
            QName serviceQName = XMLHelper.createQName(domain.getName().getNamespaceURI(), serviceName);
View Full Code Here

    }
   
    @Override
    public ReferenceInvocation newInvocation() {
        assertReference();
        ServiceInterface intf = _reference.getInterface();
        if (intf.getOperations().size() != 1) {
            throw new IllegalStateException("Operation name is required to create ReferenceInvocation for " + _serviceName);
        }
       
        return newInvocation(intf.getOperations().iterator().next().getName());
    }
View Full Code Here

                new DefaultServiceDomainSecurity());
        init();
    }
   
    public ServiceReference createInOnlyService(QName serviceName) {
        ServiceInterface inOnly = new InOnlyService();
        registerService(serviceName, inOnly, new MockHandler());
        ServiceReference reference = registerServiceReference(serviceName, inOnly);
        return reference;
    }
View Full Code Here

        return reference;
    }
   

    public ServiceReference createInOnlyService(QName serviceName, ExchangeHandler handler) {
        ServiceInterface inOnly = new InOnlyService();
        registerService(serviceName, inOnly, handler);
        ServiceReference reference = registerServiceReference(serviceName, inOnly);
        return reference;
    }
View Full Code Here

        ServiceReference reference = registerServiceReference(serviceName, inOnly);
        return reference;
    }

    public ServiceReference createInOutService(QName serviceName) {
        ServiceInterface inOut = new InOutService();
        registerService(serviceName, inOut, new MockHandler());
        ServiceReference reference = registerServiceReference(serviceName, inOut);
        return reference;
    }
View Full Code Here

        ServiceReference reference = registerServiceReference(serviceName, inOut);
        return reference;
    }

    public ServiceReference createInOutService(QName serviceName, ExchangeHandler handler) {
        ServiceInterface inOut = new InOutService();
        registerService(serviceName, inOut, handler);
        ServiceReference reference = registerServiceReference(serviceName, inOut);
        return reference;
    }
View Full Code Here

                    continue;
                }

                ServiceHandler handler = activator.activateBinding(reference.getQName(), binding);
                Activation activation = new Activation(activator, reference.getQName(), binding, handler);
                ServiceInterface si = getCompositeReferenceInterface(reference);
                Binding bindingMetadata = new Binding(binding);
                validateServiceRegistration(refQName);
                ServiceMetadata metadata = ServiceMetadataBuilder.create().registrant(bindingMetadata).build();
                Service svc = getDomain().registerService(refQName, si, handler, metadata);
                activation.addService(svc);
View Full Code Here

            }
        }
    }
   
    private ServiceInterface getCompositeReferenceInterface(CompositeReferenceModel compositeRefModel) {
        ServiceInterface serviceInterface = null;
        if (hasCompositeReferenceInterface(compositeRefModel)) {
            serviceInterface = loadServiceInterface(compositeRefModel.getInterface());
        } else {
            List<ComponentReferenceModel> componentRefModels = compositeRefModel.getComponentReferences();
            switch (componentRefModels.size()) {
View Full Code Here

        }
        return serviceInterface;
    }
   
    private ServiceInterface getCompositeServiceInterface(CompositeServiceModel compositeServiceModel) {
        ServiceInterface serviceInterface = null;
        if (hasCompositeServiceInterface(compositeServiceModel)) {
            serviceInterface = loadServiceInterface(compositeServiceModel.getInterface());
        } else if (hasComponentServiceInterface(compositeServiceModel.getComponentService())) {
            serviceInterface = loadServiceInterface(compositeServiceModel.getComponentService().getInterface());
        }
View Full Code Here

TOP

Related Classes of org.switchyard.metadata.ServiceInterface

Copyright © 2018 www.massapicom. 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.