Examples of findEndpoint()


Examples of org.apache.tuscany.sca.runtime.DomainRegistry.findEndpoint()

        if( registry != null ) {
          // Find the actual Endpoint in the DomainRegistry
            domainRegistry = getEndpointRegistry( registry );
               
                if( domainRegistry != null ) {
                    for( Endpoint endpoint : domainRegistry.findEndpoint(uri) ) {
                      // TODO: For the present, simply return the first registry with a matching endpoint
                      this.registry = registry;
                      return domainRegistry;
                    } // end for
                } // end if
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.DomainRegistry.findEndpoint()

      ExtensionPointRegistry registry) {
    DomainRegistry domainRegistry = getEndpointRegistry( registry );
       
        if( domainRegistry == null ) return null;
       
        for( Endpoint endpoint : domainRegistry.findEndpoint(ep.getURI()) ) {
          // TODO: For the present, simply return the first matching endpoint
          return (RuntimeEndpointImpl) endpoint;
        } // end for
       
    return null;
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.DomainRegistry.findEndpoint()

      ExtensionPointRegistry registry) {
    DomainRegistry domainRegistry = getEndpointRegistry( registry );
       
        if( domainRegistry == null ) return null;
       
        for( Endpoint endpoint : domainRegistry.findEndpoint(ep.getURI()) ) {
          // TODO: For the present, simply return the first matching endpoint
          return (RuntimeEndpointImpl) endpoint;
        } // end for
       
    return null;
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.EndpointRegistry.findEndpoint()

            String client = "sca.client." + UUID.randomUUID();
            CompositeContext compositeContext =
                new CompositeContext(extensionsRegistry, endpointRegistry, null, domainURI.toString(), client, nodeFactory.getDeployer().getSystemDefinitions());

            List<Endpoint> eps = endpointRegistry.findEndpoint(serviceName);
            if (eps == null || eps.size() < 1) {
                throw new NoSuchServiceException(serviceName);
            }
            Endpoint endpoint = eps.get(0); // TODO: what should be done with multiple endpoints?
          
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.EndpointRegistry.findEndpoint()

        if( registry != null ) {
          // Find the actual Endpoint in the EndpointRegistry
            endpointRegistry = getEndpointRegistry( registry );
               
                if( endpointRegistry != null ) {
                    for( Endpoint endpoint : endpointRegistry.findEndpoint(uri) ) {
                      // TODO: For the present, simply return the first registry with a matching endpoint
                      this.registry = registry;
                      return endpointRegistry;
                    } // end for
                } // end if
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.EndpointRegistry.findEndpoint()

   
    @Override
    public int complete(final String buffer, final int cursor, final List clist) {
        String service = TShellCompletor.lastArg;
        EndpointRegistry reg = ((NodeImpl)shell.getNode()).getEndpointRegistry();
        List<Endpoint> endpoints = reg.findEndpoint(service);
        if (endpoints.size() < 1) {
            return -1;
        }
        String serviceName = null;
        if (service.contains("/")) {
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.EndpointRegistry.findEndpoint()

      ExtensionPointRegistry registry) {
    EndpointRegistry endpointRegistry = getEndpointRegistry( registry );
       
        if( endpointRegistry == null ) return null;
       
        for( Endpoint endpoint : endpointRegistry.findEndpoint(ep.getURI()) ) {
          // TODO: For the present, simply return the first matching endpoint
          return (RuntimeEndpointImpl) endpoint;
        } // end for
       
    return null;
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.EndpointRegistry.findEndpoint()

            String client = "sca.client." + UUID.randomUUID();
            CompositeContext compositeContext =
                new CompositeContext(extensionsRegistry, endpointRegistry, null, domainURI.toString(), client, nodeFactory.getDeployer().getSystemDefinitions());

            List<Endpoint> eps = endpointRegistry.findEndpoint(serviceName);
            if (eps == null || eps.size() < 1) {
                throw new NoSuchServiceException(serviceName);
            }
            Endpoint endpoint = eps.get(0); // TODO: what should be done with multiple endpoints?
          
View Full Code Here

Examples of org.fusesource.ide.camel.model.RouteSupport.findEndpoint()

  protected boolean selectEndpointUri(String uri) {
    if (node != null) {
      RouteContainer parent = getParentContainer();
      if (parent instanceof RouteSupport) {
        RouteSupport route = (RouteSupport) parent;
        AbstractNode newSelection = route.findEndpoint(uri);
        if (newSelection == null) {
          // lets try iterate through any children
          List<AbstractNode> children = parent.getChildren();
          for (AbstractNode child : children) {
            if (child instanceof RouteSupport) {
View Full Code Here

Examples of org.fusesource.ide.camel.model.RouteSupport.findEndpoint()

          // lets try iterate through any children
          List<AbstractNode> children = parent.getChildren();
          for (AbstractNode child : children) {
            if (child instanceof RouteSupport) {
              route = (RouteSupport) child;
              newSelection = route.findEndpoint(uri);
              if (newSelection != null) {
                break;
              }
            }
          }
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.