diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-09 11:04:01 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-09 11:04:01 +0000 |
commit | 7a37b7c9192277d673aeb6a57968d0d0e4a04a4a (patch) | |
tree | 4892e8d3a1750cdf23518b35e5134aca60a02f87 /java/sca/modules/assembly/src/main | |
parent | d59495feac722bcff5d2c48e6c3007d23a6d4d71 (diff) |
TUSCANY-2587 - change the name of promoted services so that the component name and service name are easily obtainable. I've opened TUSCANY-2589 to continue to track this issue past this immediate change.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@693434 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/assembly/src/main')
2 files changed, 2 insertions, 2 deletions
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentServicePromotionBuilderImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentServicePromotionBuilderImpl.java index 53e6eda1eb..d73286f7ab 100644 --- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentServicePromotionBuilderImpl.java +++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentServicePromotionBuilderImpl.java @@ -72,7 +72,7 @@ public class ComponentServicePromotionBuilderImpl implements CompositeBuilder { // Create a new component service to represent this // component service on the promoted component ComponentService newComponentService = assemblyFactory.createComponentService(); - newComponentService.setName("$promoted$." + component.getName() + "." + componentService.getName()); + newComponentService.setName("$promoted$" + component.getName() + "$slash$" + componentService.getName()); promotedComponent.getServices().add(newComponentService); newComponentService.setService(promotedService.getService()); newComponentService.getBindings().addAll(componentService.getBindings()); diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositeServicePromotionBuilderImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositeServicePromotionBuilderImpl.java index 39d2cec396..ea0e88ac24 100644 --- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositeServicePromotionBuilderImpl.java +++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositeServicePromotionBuilderImpl.java @@ -54,7 +54,7 @@ public class CompositeServicePromotionBuilderImpl implements CompositeBuilder { // Create a new component service to represent this composite // service on the promoted component ComponentService newComponentService = assemblyFactory.createComponentService(); - newComponentService.setName("$promoted$." + compositeService.getName()); + newComponentService.setName("$promoted$" + compositeService.getName()); promotedComponent.getServices().add(newComponentService); newComponentService.setService(promotedService.getService()); newComponentService.getBindings().addAll(compositeService.getBindings()); |