summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/launchers/notification-corba/src/main
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-11-05 19:32:26 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-11-05 19:32:26 +0000
commit18d8aa3401326d927bbb0665e25dd0f2cdce92fd (patch)
tree0ae9e8d37b818600d4f7f3dcdf6a736f2060033d /sandbox/travelsample/launchers/notification-corba/src/main
parentc258d9427a37bbd1f152483267920514ebb18e0a (diff)
Introduce a LauncherUtil to locate contributions by name
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@833142 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/launchers/notification-corba/src/main')
-rw-r--r--sandbox/travelsample/launchers/notification-corba/src/main/java/scatours/NotificationCORBALauncher.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/sandbox/travelsample/launchers/notification-corba/src/main/java/scatours/NotificationCORBALauncher.java b/sandbox/travelsample/launchers/notification-corba/src/main/java/scatours/NotificationCORBALauncher.java
index 6b3147dce9..eb7d12f2f9 100644
--- a/sandbox/travelsample/launchers/notification-corba/src/main/java/scatours/NotificationCORBALauncher.java
+++ b/sandbox/travelsample/launchers/notification-corba/src/main/java/scatours/NotificationCORBALauncher.java
@@ -19,6 +19,8 @@
package scatours;
+import static scatours.launcher.LauncherUtil.locate;
+
import org.apache.tuscany.sca.node.SCAClient;
import org.apache.tuscany.sca.node.SCAContribution;
import org.apache.tuscany.sca.node.SCANode;
@@ -30,11 +32,9 @@ public class NotificationCORBALauncher {
public static void main(String[] args) throws Exception {
SCAContribution notificationContribution =
- new SCAContribution("notification",
- "../../contributions/notification/target/classes");
+ locate("notification");
SCAContribution notificationCORBAContribution =
- new SCAContribution("notification-corba",
- "../../contributions/notification-corba/target/classes");
+ locate("notification-corba");
SCANode node = SCANodeFactory.newInstance().createSCANode(
"notification-corba.composite", notificationContribution, notificationCORBAContribution);