Package org.apache.tuscany.sca.runtime

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


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

    protected EndpointRegistry createEndpointRegistry(String endpointRegistryURI, String domainURI) {
        EndpointRegistry endpointRegistry =
            new ReplicatedEndpointRegistry(registry, null, endpointRegistryURI, domainURI);
        return endpointRegistry;
    }
View Full Code Here


            }
            if (registryURI.startsWith("tuscany:")) {
                registryURI = "tuscanyclient:" + registryURI.substring(8);
            }
           
            EndpointRegistry endpointRegistry;
            try {
                endpointRegistry = domainRegistryFactory.getEndpointRegistry(registryURI, domainURI);
            } catch (Exception e) {
                throw new NoSuchDomainException(domainURI, e);
            }
           
            FactoryExtensionPoint factories = extensionsRegistry.getExtensionPoint(FactoryExtensionPoint.class);
            AssemblyFactory assemblyFactory = factories.getFactory(AssemblyFactory.class);
            JavaInterfaceFactory javaInterfaceFactory = factories.getFactory(JavaInterfaceFactory.class);
            ProxyFactory proxyFactory = new ExtensibleProxyFactory(extensionsRegistry.getExtensionPoint(ProxyFactoryExtensionPoint.class));

            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

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

    protected EndpointRegistry createEndpointRegistry(String endpointRegistryURI, String domainURI) {
        EndpointRegistry endpointRegistry =
            new EndpointRegistryImpl(registry, endpointRegistryURI, domainURI);
        return endpointRegistry;
    }
View Full Code Here

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

    protected EndpointRegistry createEndpointRegistry(String endpointRegistryURI, String domainURI) {
        EndpointRegistry endpointRegistry =
            new HazelcastClientEndpointRegistry(registry, null, endpointRegistryURI, domainURI);
        return endpointRegistry;
    }
View Full Code Here

    public List<String> getServiceNames() {
        List<String> serviceNames = new ArrayList<String>();
        if (nodes.size() > 0) {
            ExtensionPointRegistry extensionsRegistry = ((NodeImpl)nodes.values().iterator().next()).getExtensionPointRegistry();
            DomainRegistryFactory domainRegistryFactory = ExtensibleDomainRegistryFactory.getInstance(extensionsRegistry);
            EndpointRegistry endpointRegistry = domainRegistryFactory.getEndpointRegistry(getDomainConfigURI(), getDomainName());
            for (Endpoint endpoint : endpointRegistry.getEndpoints()) {
                // Would be nice if Endpoint.getURI() returned this:
                String name = endpoint.getComponent().getName() + "/" + endpoint.getService().getName();
                if (endpoint.getBinding() != null) {
                    // TODO: shouldn't the binding name be null if its not explicitly specified?
                    //       For now don't include it if the same as the default
View Full Code Here

TOP

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

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.