summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/contributions/emailgateway/src/main/java/com/tuscanyscatours
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2009-09-14 19:14:55 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2009-09-14 19:14:55 +0000
commit74fd56e437d7770c6165671e8efa33d49643fdc6 (patch)
tree8bf197ae9ebadd1f8afd9a205843690294aa86a2 /sandbox/travelsample/contributions/emailgateway/src/main/java/com/tuscanyscatours
parentfc9368f667973e038383e34ab73a6879c6cf55d6 (diff)
Apply new naming convention to the payment-bpel, payment-groovy and emailgateway contributions
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@814783 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/contributions/emailgateway/src/main/java/com/tuscanyscatours')
-rw-r--r--sandbox/travelsample/contributions/emailgateway/src/main/java/com/tuscanyscatours/emailgateway/impl/EmailGatewayImpl.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/sandbox/travelsample/contributions/emailgateway/src/main/java/com/tuscanyscatours/emailgateway/impl/EmailGatewayImpl.java b/sandbox/travelsample/contributions/emailgateway/src/main/java/com/tuscanyscatours/emailgateway/impl/EmailGatewayImpl.java
new file mode 100644
index 0000000000..3f561bfe70
--- /dev/null
+++ b/sandbox/travelsample/contributions/emailgateway/src/main/java/com/tuscanyscatours/emailgateway/impl/EmailGatewayImpl.java
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package com.tuscanyscatours.emailgateway.impl;
+
+import com.tuscanyscatours.emailgateway.EmailGateway;
+import com.tuscanyscatours.emailgateway.EmailType;
+import org.osoa.sca.annotations.Service;
+
+/**
+ *
+ */
+@Service(EmailGateway.class)
+public class EmailGatewayImpl implements EmailGateway {
+
+ public String sendEmail(EmailType email) {
+ System.out.println("Sending mail to " + email.getTo());
+ return "SENT";
+ }
+
+}