summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/node-impl
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-11-30 09:19:46 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-11-30 09:19:46 +0000
commit6199ffdbaea5f4b4cd67efe61eee61021551f827 (patch)
tree5ecedb1d0ceecf9f797d65e41a58c57cc757b19a /sca-java-2.x/trunk/modules/node-impl
parent8931fd42ecc7cbababf330fe952b2a82c569d3df (diff)
Code now moved to deployer
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1040446 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/node-impl')
-rw-r--r--sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java54
1 files changed, 1 insertions, 53 deletions
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<Contribution> loadContributions(NodeConfiguration configuration, ProcessorContext context) throws Throwable {
List<Contribution> contributions = new ArrayList<Contribution>();