summaryrefslogtreecommitdiffstats
path: root/java/sca/samples/dosgi-dynamic-calculator-operations/src/main
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-10-27 21:04:51 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-10-27 21:04:51 +0000
commit5cfd47acaadaca214fa71ac58fb9225825d3f561 (patch)
tree590e5686b28c64c13a13a29dfc8a26910b83e5f3 /java/sca/samples/dosgi-dynamic-calculator-operations/src/main
parent49992e45cb204a23cf1800d5c078e50600ff044c (diff)
Use sca-config XML files for SCA binding/policy definitions
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@830339 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/samples/dosgi-dynamic-calculator-operations/src/main')
-rw-r--r--java/sca/samples/dosgi-dynamic-calculator-operations/src/main/java/calculator/dosgi/operations/impl/OperationsActivator.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/sca/samples/dosgi-dynamic-calculator-operations/src/main/java/calculator/dosgi/operations/impl/OperationsActivator.java b/java/sca/samples/dosgi-dynamic-calculator-operations/src/main/java/calculator/dosgi/operations/impl/OperationsActivator.java
index 8d4838950b..f75cc6444e 100644
--- a/java/sca/samples/dosgi-dynamic-calculator-operations/src/main/java/calculator/dosgi/operations/impl/OperationsActivator.java
+++ b/java/sca/samples/dosgi-dynamic-calculator-operations/src/main/java/calculator/dosgi/operations/impl/OperationsActivator.java
@@ -49,22 +49,22 @@ public class OperationsActivator implements BundleActivator {
logger.info("Registering " + AddService.class.getName());
props.put("sca.service", "AddComponent#service-name(Add)");
- props.put("sca.bindings", new String[] {"OSGI-INF/sca/add-service.bindings"});
+ props.put("org.osgi.sca.bindings", new String[] {"{http://sample}Add"});
context.registerService(AddService.class.getName(), new AddServiceImpl(), props);
logger.info("Registering " + SubtractService.class.getName());
props.put("sca.service", "SubtractComponent#service-name(Subtract)");
- props.put("sca.bindings", new String[] {"OSGI-INF/sca/subtract-service.bindings"});
+ props.put("org.osgi.sca.bindings", new String[] {"{http://sample}Subtract"});
context.registerService(SubtractService.class.getName(), new SubtractServiceImpl(), props);
logger.info("Registering " + MultiplyService.class.getName());
props.put("sca.service", "MultiplyComponent#service-name(Multiply)");
- props.put("sca.bindings", new String[] {"OSGI-INF/sca/multiply-service.bindings"});
+ props.put("org.osgi.sca.bindings", new String[] {"{http://sample}Multiply"});
context.registerService(MultiplyService.class.getName(), new MultiplyServiceImpl(), props);
logger.info("Registering " + DivideService.class.getName());
props.put("sca.service", "DivideComponent#service-name(Divide)");
- props.put("sca.bindings", new String[] {"OSGI-INF/sca/divide-service.bindings"});
+ props.put("org.osgi.sca.bindings", new String[] {"{http://sample}Divide"});
context.registerService(DivideService.class.getName(), new DivideServiceImpl(), props);
getBundle(context, AddService.class);