Package org.switchyard.component.common.knowledge.service

Examples of org.switchyard.component.common.knowledge.service.SwitchYardServiceChannel


                    channelClass = SwitchYardServiceChannel.class;
                }
                Channel channel = Construction.construct(channelClass);
                String name = channelModel.getName();
                if (channel instanceof SwitchYardServiceChannel) {
                    SwitchYardServiceChannel sysc = (SwitchYardServiceChannel)channel;
                    if (name != null) {
                        sysc.setName(name);
                    } else {
                        name = sysc.getName();
                    }
                    QName serviceName = XMLHelper.createQName(channelModel.getReference());
                    if (serviceName != null && componentName != null) {
                        serviceName = ComponentNames.qualify(componentName, ComponentNames.unqualify(serviceName));
                    }
                    sysc.setServiceName(serviceName);
                    sysc.setOperationName(channelModel.getOperation());
                    sysc.setInvoker(new SwitchYardServiceInvoker(domain, componentTNS));
                }
                if (name == null) {
                    throw CommonKnowledgeMessages.MESSAGES.couldNotUseNullNameToRegisterChannel(channel.getClass().getName());
                }
                ncList.add(new NameChannel(name, channel));
View Full Code Here


            channelModel.setClazz(clazz);
            String name = channelAnnotation.name();
            if (UNDEFINED.equals(name)) {
                org.kie.api.runtime.Channel c = Construction.construct(clazz);
                if (c instanceof SwitchYardServiceChannel) {
                    SwitchYardServiceChannel sysc = (SwitchYardServiceChannel)c;
                    if (sysc.getName() != null) {
                        name = sysc.getName();
                    }
                }
            }
            if (UNDEFINED.equals(name)) {
                name = clazz.getSimpleName();
View Full Code Here

TOP

Related Classes of org.switchyard.component.common.knowledge.service.SwitchYardServiceChannel

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.