[jboss-svn-commits] JBL Code SVN: r6542 - in labs/jbossesb/trunk/product/core: rosetta/src/org/jboss/soa/esb/services rosetta/src/org/jboss/soa/esb/services/transform services/src/org/jboss/soa/esb/services

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Oct 3 06:35:20 EDT 2006


Author: tfennelly
Date: 2006-10-03 06:35:02 -0400 (Tue, 03 Oct 2006)
New Revision: 6542

Added:
   labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/transform/
   labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/transform/TransformationException.java
   labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/transform/TransformationService.java
   labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/transform/package.html
Removed:
   labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/transform/
Log:
Moved transformation service interface to the services package in the rosetta module

http://jira.jboss.com/jira/browse/JBESB-169

Added: labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/transform/TransformationException.java
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/transform/TransformationException.java	2006-10-03 10:16:27 UTC (rev 6541)
+++ labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/transform/TransformationException.java	2006-10-03 10:35:02 UTC (rev 6542)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.soa.esb.services.transform;
+
+import org.jboss.soa.esb.BaseException;
+
+/**
+ * Transformation Service Exception.
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ * @since Version 4.0
+ */
+public class TransformationException extends BaseException {
+
+	private static final long serialVersionUID = 1L;
+
+	/**
+	 * Public constructor.
+	 * @param message Exception message.
+	 */
+	public TransformationException(String message) {
+		super(message);
+	}
+
+	/**
+	 * Public constructor.
+	 * @param message Exception message.
+	 * @param cause Exception cause.
+	 */
+	public TransformationException(String message, Throwable cause) {
+		super(message, cause);
+	}
+
+	/**
+	 * Public constructor.
+	 * @param cause Exception cause.
+	 */
+	public TransformationException(Throwable cause) {
+		super(cause);
+	}
+}

Added: labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/transform/TransformationService.java
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/transform/TransformationService.java	2006-10-03 10:16:27 UTC (rev 6541)
+++ labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/transform/TransformationService.java	2006-10-03 10:35:02 UTC (rev 6542)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.soa.esb.services.transform;
+
+/**
+ * Transformation Service interface.
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ * @since Version 4.0
+ */
+public interface TransformationService {
+	
+	/**
+	 * Transform the supplied message object and return the transformation result.
+	 * @param message The message to be transformed.
+	 * @return The transformed message.
+	 * @throws TransformationException An Exception occured during the transformation process.
+	 */
+	public Object transform(Object message) throws TransformationException;
+}

Added: labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/transform/package.html
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/transform/package.html	2006-10-03 10:16:27 UTC (rev 6541)
+++ labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/services/transform/package.html	2006-10-03 10:35:02 UTC (rev 6542)
@@ -0,0 +1,8 @@
+<html>
+    <head></head>
+    <body>
+        Transformation Service.
+
+	<h2>Package Specification</h2>
+    </body>
+</html>




More information about the jboss-svn-commits mailing list