Package org.apache.tuscany.sca.runtime

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


    // a chance to run and report any errors for local references prior to
    // runtime start. Not in use at the moment as we are getting away with
    // runtime matching. Leaving here for when we come to sorting out
    // autowire which still relies on matching in the builder
    private void postBuildEndpointReferenceMatching(Composite composite){
        EndpointReferenceBinder endpointReferenceBinder = registry.getExtensionPoint(EndpointReferenceBinder.class);
        DomainRegistryFactory domainRegistryFactory = ExtensibleDomainRegistryFactory.getInstance(registry);
       
        // create temporary local registry for all available local endpoints
        // TODO - need a better way of getting a local registry
        EndpointRegistry registry = domainRegistryFactory.getEndpointRegistry("vm://tmp", "local");
       
        // populate the registry with all the endpoints that are currently present in the model
        populateLocalRegistry(composite, registry);
       
        // look at all the endpoint references and try to match them to
        // any local endpoints
        for (EndpointReference endpointReference : registry.getEndpointReferences()){
            endpointReferenceBinder.bindBuildTime(registry, endpointReference);
        }
       
        // remove the local registry
        domainRegistryFactory.getEndpointRegistries().remove(registry);
    }
View Full Code Here


    // a chance to run and report any errors for local references prior to
    // runtime start. Not in use at the moment as we are getting away with
    // runtime matching. Leaving here for when we come to sorting out
    // autowire which still relies on matching in the builder
    private void postBuildEndpointReferenceMatching(Composite composite){
        EndpointReferenceBinder endpointReferenceBinder = registry.getExtensionPoint(EndpointReferenceBinder.class);
        DomainRegistryFactory domainRegistryFactory = ExtensibleDomainRegistryFactory.getInstance(registry);
       
        // create temporary local registry for all available local endpoints
        // TODO - need a better way of getting a local registry
        EndpointRegistry registry = domainRegistryFactory.getEndpointRegistry("vm://tmp", "local");
       
        // populate the registry with all the endpoints that are currently present in the model
        populateLocalRegistry(composite, registry);
       
        // look at all the endpoint references and try to match them to
        // any local endpoints
        for (EndpointReference endpointReference : registry.getEndpointReferences()){
            endpointReferenceBinder.bindBuildTime(registry, endpointReference);
        }
       
        // remove the local registry
        domainRegistryFactory.getEndpointRegistries().remove(registry);
    }
View Full Code Here

TOP

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

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.