Package org.servicemix.jbi.servicedesc

Examples of org.servicemix.jbi.servicedesc.InternalEndpoint


     * @return the ComponentConnector
     */
    public ComponentConnector getComponentConnector(QName interfaceName) {
        ComponentConnector result = null;
        for (Iterator i = getInternalEndpoints().iterator();i.hasNext();) {
            InternalEndpoint endpoint = (InternalEndpoint) i.next();
            QName[] interfaces = endpoint.getInterfaces();
            if (interfaces != null) {
                if (interfaceName != null) {
                    for (int k = 0;k < interfaces.length;k++) {
                        QName qn = interfaces[k];
                        if (qn != null && qn.equals(interfaceName)) {
                            result = componentRegistry.getComponentConnector(endpoint.getComponentNameSpace());
                            break;
                        }
                    }
                }
            }
View Full Code Here


    protected ComponentConnector getComponentConnectorByEndpointName(String endpointName) {
        ComponentConnector result = null;
        if (endpointName != null) {
            for (Iterator i = getInternalEndpoints().iterator();i.hasNext();) {
                InternalEndpoint endpoint = (InternalEndpoint) i.next();
                if (endpoint.getEndpointName().equals(endpointName)) {
                    result = componentRegistry.getComponentConnector(endpoint.getComponentNameSpace());
                    break;
                }
            }
        }
        return result;
View Full Code Here

        }
        return result;
    }
   
    protected InternalEndpoint getEndpointByName(String endpointName) {
        InternalEndpoint result = null;
        if (endpointName != null) {
            for (Iterator i = getInternalEndpoints().iterator();i.hasNext();) {
                InternalEndpoint endpoint = (InternalEndpoint) i.next();
                if (endpoint.getEndpointName().equals(endpointName)) {
                    result = endpoint;
                    break;
                }
            }
        }
View Full Code Here

                // get the list of services
                if (service != null) {
                    ServiceEndpoint[] ses = registry.getEndpointsForService(service);
                    if (ses != null) {
                        for (int i = 0; i < ses.length; i++) {
                            InternalEndpoint se = (InternalEndpoint) ses[i];
                            if (se.getComponentNameSpace() != null && se.getComponentNameSpace().equals(sourceId)) {
                                result = true;
                                break;
                            }
                        }
                    }
                }
                if (result && interfaceName != null) {
                    ServiceEndpoint[] ses = registry.getEndpoints(interfaceName);
                    if (ses != null) {
                        result = false;
                        for (int i = 0; i < ses.length; i++) {
                            InternalEndpoint se = (InternalEndpoint) ses[i];
                            if (se.getComponentNameSpace() != null && se.getComponentNameSpace().equals(sourceId)) {
                                result = true;
                                break;
                            }
                        }
                    }
View Full Code Here

TOP

Related Classes of org.servicemix.jbi.servicedesc.InternalEndpoint

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.