Package org.apache.tuscany.sca.runtime

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


        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

   
    @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

      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

            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

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.