Examples of EndpointRegistry


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

        nodeFactory.init();
        nodeFactory.addNode(configuration, this);
        this.proxyFactory = nodeFactory.proxyFactory;
       
        DomainRegistryFactory domainRegistryFactory = ExtensibleDomainRegistryFactory.getInstance(nodeFactory.registry);
        EndpointRegistry endpointRegistry =
            domainRegistryFactory.getEndpointRegistry(configuration.getDomainRegistryURI(), configuration
                .getDomainURI());
       
        UtilityExtensionPoint utilities = nodeFactory.registry.getExtensionPoint(UtilityExtensionPoint.class);
        this.compositeActivator = utilities.getUtility(CompositeActivator.class);
View Full Code Here

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

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

            }
            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

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

    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

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

    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

Examples of org.jboss.wsf.spi.management.EndpointRegistry

     *
     * @return endpoint registry
     */
    public EndpointRegistry getEndpointRegistry() {
        try {
            EndpointRegistry registry = ASHelper.getMSCService(WSServices.REGISTRY_SERVICE, EndpointRegistry.class);
            if (registry == null) {
                registry = fallbackRegistry;
            }
            return registry;
        } catch (Exception e) {
View Full Code Here

Examples of org.jboss.wsf.spi.management.EndpointRegistry

            dam.deploy(dep);
            // TODO: [JBWS-3426] fix this. START workaround
            if (target == null) {
                SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
                EndpointRegistryFactory factory = spiProvider.getSPI(EndpointRegistryFactory.class);
                EndpointRegistry registry = factory.getEndpointRegistry();
                for (final Endpoint endpoint : dep.getService().getEndpoints()) {
                    registry.register(endpoint);
                }
            }
            // END workaround
        } finally {
            if (dep != null) {
View Full Code Here

Examples of org.jboss.wsf.spi.management.EndpointRegistry

                final ServiceTarget target = deployment.getAttachment(ServiceTarget.class);
                // TODO: [JBWS-3426] fix this. START workaround
                if (target == null) {
                    SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
                    EndpointRegistryFactory factory = spiProvider.getSPI(EndpointRegistryFactory.class);
                    EndpointRegistry registry = factory.getEndpointRegistry();
                    for (final Endpoint endpoint : deployment.getService().getEndpoints()) {
                        registry.unregister(endpoint);
                    }
                }
                // END workaround
                DeploymentAspectManager dam = new DeploymentAspectManagerImpl();
                dam.setDeploymentAspects(aspects);
View Full Code Here

Examples of org.jboss.wsf.spi.management.EndpointRegistry

            endpointObjectName = new ObjectName("jboss.ws:context=" + webContext + ",endpoint=" + endpointName);
        } catch (final MalformedObjectNameException e) {
            throw new OperationFailedException(new ModelNode().set(e.getMessage()));
        }

        final EndpointRegistry registry = (EndpointRegistry) controller.getValue();
        final Endpoint endpoint = registry.getEndpoint(endpointObjectName);

        final ModelNode result = new ModelNode();
        if (endpoint != null && endpoint.getEndpointMetrics() != null) {
            final EndpointMetrics endpointMetrics = endpoint.getEndpointMetrics();
            if (MIN_PROCESSING_TIME.equals(metricName)) {
View Full Code Here

Examples of org.jboss.wsf.spi.management.EndpointRegistry

public class EndpointRegistryDeploymentAspect extends DeploymentAspect
{
   public void create(Deployment dep)
   {
      SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
      EndpointRegistry registry = spiProvider.getSPI(EndpointRegistryFactory.class).getEndpointRegistry();
      for (Endpoint ep : dep.getService().getEndpoints())
      {
         registry.register(ep);
      }
   }
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.