summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-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>();