Package org.apache.tuscany.sca.runtime

Examples of org.apache.tuscany.sca.runtime.DomainRegistry


    public TribesDomainRegistryFactory(ExtensionPointRegistry registry) {
        super(registry);
    }

    protected DomainRegistry createEndpointRegistry(String endpointRegistryURI, String domainURI) {
        DomainRegistry domainRegistry =
            new ReplicatedDomainRegistry(registry, null, endpointRegistryURI, domainURI);
        return domainRegistry;
    }
View Full Code Here


     
      // Store the new callback EPR into the Endpoint
      this.getCallbackEndpointReferences().add(asyncEPR);
     
      // Also store the callback EPR into the DomainRegistry
      DomainRegistry epReg = getEndpointRegistry( registry );
      if( epReg != null ) epReg.addEndpointReference(asyncEPR);
    } // end method createAsyncServerCallback
View Full Code Here

     * @param registry - the main extension point Registry
     * @return the corresponding Endpoint from the DomainRegistry, or null if no match can be found
     */
    private RuntimeEndpointImpl findActualEP(RuntimeEndpointImpl ep,
      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

        DomainRegistryFactory domainRegistryFactory = ExtensibleDomainRegistryFactory.getInstance(registry);
       
        if( domainRegistryFactory == null ) return null;
       
        // TODO: For the moment, just use the first (and only!) DomainRegistry...
        DomainRegistry domainRegistry = (DomainRegistry) domainRegistryFactory.getEndpointRegistries().toArray()[0];
     
      return domainRegistry;
    } // end method
View Full Code Here

    boolean services() throws IOException {
        if (getNode() == null) {
            return true;
        }
        DomainRegistry reg = ((NodeImpl)getNode()).getEndpointRegistry();
        for (Endpoint endpoint : reg.getEndpoints()) {
            out.println(endpoint.getComponent().getURI() + "/" + endpoint.getService().getName());
            for (Binding b : endpoint.getService().getBindings()) {
                if (!SCABinding.TYPE.equals(b.getType())) {
                    out.println("    " + b.getType().getLocalPart() + " " + b.getURI());
                }
View Full Code Here

   
    @Override
    public int complete(final String buffer, final int cursor, final List clist) {
        if (shell.getNode() != null) {
            List<String> services = new ArrayList<String>();
            DomainRegistry reg = ((NodeImpl)shell.getNode()).getEndpointRegistry();
            for (Endpoint endpoint : reg.getEndpoints()) {
                services.add(endpoint.getComponent().getURI() + "/" + endpoint.getService().getName());
            }
            setCandidateStrings(services.toArray(new String[services.size()]));
        }
       return super.complete(buffer, cursor, clist);
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.runtime.DomainRegistry

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.