Package org.apache.tuscany.sca.runtime

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


        NodeFactoryImpl factory = (NodeFactoryImpl)NodeFactory.newInstance(attrs);
        Assert.assertFalse(factory.getExtensionPointRegistry().getExtensionPoint(ValidationSchemaExtensionPoint.class)
            .isEnabled());

        DomainRegistryFactoryExtensionPoint domainRegistryFactoryExtensionPoint =
            factory.getExtensionPointRegistry().getExtensionPoint(DomainRegistryFactoryExtensionPoint.class);
        Map<String, String> mapping = domainRegistryFactoryExtensionPoint.getDomainRegistryMapping();
        Assert.assertEquals(1, mapping.size());
        Assert.assertEquals("multicast://200.0.0.100:50000/MyDomain", mapping.get("urn:MyDomain"));
    }
View Full Code Here


    }

    // FIXME: [rfeng] This is a HACK to check if we should make binding.sca remotable
    // by checking if we have distributed domain registry present
    protected boolean isDistributed() {
        DomainRegistryFactoryExtensionPoint factories =
            registry.getExtensionPoint(DomainRegistryFactoryExtensionPoint.class);
        List<DomainRegistryFactory> list = factories.getDomainRegistryFactories();
        if (list.size() == 1) {
            String[] schemes = list.get(0).getSupportedSchemes();
            if (Arrays.asList(schemes).contains("local")) {
                return false;
            }
View Full Code Here

    }

    // FIXME: [rfeng] This is a HACK to check if we should make binding.sca remotable
    // by checking if we have distributed domain registry present
    private boolean isDistributed() {
        DomainRegistryFactoryExtensionPoint factories =
            registry.getExtensionPoint(DomainRegistryFactoryExtensionPoint.class);
        List<DomainRegistryFactory> list = factories.getDomainRegistryFactories();
        if (list.size() == 1) {
            String[] schemes = list.get(0).getSupportedSchemes();
            if (Arrays.asList(schemes).contains("local")) {
                return false;
            }
View Full Code Here

        NodeFactoryImpl factory = (NodeFactoryImpl)NodeFactory.newInstance(attrs);
        Assert.assertFalse(factory.getExtensionPointRegistry().getExtensionPoint(ValidationSchemaExtensionPoint.class)
            .isEnabled());

        DomainRegistryFactoryExtensionPoint domainRegistryFactoryExtensionPoint =
            factory.getExtensionPointRegistry().getExtensionPoint(DomainRegistryFactoryExtensionPoint.class);
        Map<String, String> mapping = domainRegistryFactoryExtensionPoint.getDomainRegistryMapping();
        Assert.assertEquals(1, mapping.size());
        Assert.assertEquals("multicast://200.0.0.100:50000/MyDomain", mapping.get("urn:MyDomain"));
    }
View Full Code Here

    }

    // FIXME: [rfeng] This is a HACK to check if we should make binding.sca remotable
    // by checking if we have distributed domain registry present
    protected boolean isDistributed() {
        DomainRegistryFactoryExtensionPoint factories =
            registry.getExtensionPoint(DomainRegistryFactoryExtensionPoint.class);
        List<DomainRegistryFactory> list = factories.getDomainRegistryFactories();
        if (list.size() == 1) {
            String[] schemes = list.get(0).getSupportedSchemes();
            if (Arrays.asList(schemes).contains("local")) {
                return false;
            }
View Full Code Here

        NodeFactoryImpl factory = (NodeFactoryImpl)NodeFactory.newInstance(attrs);
        Assert.assertFalse(factory.getExtensionPointRegistry().getExtensionPoint(ValidationSchemaExtensionPoint.class)
            .isEnabled());

        DomainRegistryFactoryExtensionPoint domainRegistryFactoryExtensionPoint =
            factory.getExtensionPointRegistry().getExtensionPoint(DomainRegistryFactoryExtensionPoint.class);
        Map<String, String> mapping = domainRegistryFactoryExtensionPoint.getDomainRegistryMapping();
        Assert.assertEquals(1, mapping.size());
        Assert.assertEquals("multicast://200.0.0.100:50000/MyDomain", mapping.get("urn:MyDomain"));
    }
View Full Code Here

    }

    // FIXME: [rfeng] This is a HACK to check if we should make binding.sca remotable
    // by checking if we have distributed domain registry present
    private boolean isDistributed() {
        DomainRegistryFactoryExtensionPoint factories =
            registry.getExtensionPoint(DomainRegistryFactoryExtensionPoint.class);
        List<DomainRegistryFactory> list = factories.getDomainRegistryFactories();
        if (list.size() == 1) {
            String[] schemes = list.get(0).getSupportedSchemes();
            if (Arrays.asList(schemes).contains("local")) {
                return false;
            }
View Full Code Here

TOP

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

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.