diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-04-08 12:21:20 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-04-08 12:21:20 +0000 |
commit | 3571fa366df88a6bfba3e4ec972f5ec6e7bdd1da (patch) | |
tree | 1546b927f11e68b7f2858fc2abd6b21832d61e06 /sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node | |
parent | 4e89e387d15e50c28855127bcbbd18fb9629c78d (diff) |
TUSCANY-3529 - update binding matching to turn on code that looks at binding type provided intents
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@931904 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node')
2 files changed, 17 insertions, 2 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 e0691ab11b..349c28d66e 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 @@ -471,4 +471,14 @@ public class NodeFactoryImpl extends NodeFactory { super.configure(attributes); } + /** + * Added to allow the node access to the deployer in order to get + * to the systemContribution and hence set up the CompositeContext so that + * the runtime epr matching algorithm can get at the binding types + * @return + */ + public Deployer getDeployer() { + return deployer; + } + } diff --git a/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java b/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java index eef9f39009..36091bec6c 100644 --- a/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java +++ b/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java @@ -128,8 +128,13 @@ public class NodeImpl implements Node { domainComposite = manager.configureNode(configuration, contributions, context); this.compositeContext = - new CompositeContext(manager.registry, endpointRegistry, domainComposite, configuration - .getDomainURI(), configuration.getURI()); + new CompositeContext(manager.registry, + endpointRegistry, + domainComposite, + configuration.getDomainURI(), + configuration.getURI(), + manager.getDeployer().getSystemDefinitions()); + CompositeContext.setThreadCompositeContext(compositeContext); } finally { // Reset the thread context monitor |