From 6199ffdbaea5f4b4cd67efe61eee61021551f827 Mon Sep 17 00:00:00 2001 From: slaws Date: Tue, 30 Nov 2010 09:19:46 +0000 Subject: Code now moved to deployer git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1040446 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/node/impl/NodeFactoryImpl.java | 54 +--------------------- 1 file changed, 1 insertion(+), 53 deletions(-) (limited to 'sca-java-2.x/trunk') diff --git a/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java b/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java index 5497acd6cf..63c5254873 100644 --- a/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java +++ b/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java @@ -331,59 +331,7 @@ public class NodeFactoryImpl extends NodeFactory { } } return contributions; - } - - // ============================================= - // TODO - TUSCANY-3425 - // post build endpoint reference matching. Give the matching algorithm - // 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); - } - - private void populateLocalRegistry(Composite composite, EndpointRegistry registry){ - for (Component component : composite.getComponents()) { - // recurse for composite implementations - Implementation implementation = component.getImplementation(); - if (implementation instanceof Composite) { - populateLocalRegistry((Composite)implementation, registry); - } - - for (ComponentService service : component.getServices()) { - for (Endpoint endpoint : service.getEndpoints()){ - registry.addEndpoint(endpoint); - } - } - - for (ComponentReference reference : component.getReferences()) { - for (EndpointReference endpointReference : reference.getEndpointReferences()){ - registry.addEndpointReference(endpointReference); - } - } - } - } - - // ============================================= + } protected List loadContributions(NodeConfiguration configuration, ProcessorContext context) throws Throwable { List contributions = new ArrayList(); -- cgit v1.2.3