[jboss-svn-commits] JBL Code SVN: r21507 - in labs/jbossesb/workspace/skeagh: service-api/src/main/java/org/jboss/esb and 1 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Aug 13 08:02:31 EDT 2008


Author: tfennelly
Date: 2008-08-13 08:02:31 -0400 (Wed, 13 Aug 2008)
New Revision: 21507

Added:
   labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/JBossESBException.java
   labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/Service.java
   labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/ServiceException.java
Modified:
   labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/serialization/SerializationException.java
Log:
Added some more Service related classes.

Modified: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/serialization/SerializationException.java
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/serialization/SerializationException.java	2008-08-13 11:26:36 UTC (rev 21506)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/serialization/SerializationException.java	2008-08-13 12:02:31 UTC (rev 21507)
@@ -19,6 +19,8 @@
  */
 package org.jboss.esb.serialization;
 
+import org.jboss.esb.JBossESBException;
+
 /**
  * Serialization/Deserialization Exception.
  *
@@ -27,11 +29,12 @@
  * @author <a href="mailto:dbevenius at redhat.com">Daniel Bevenius</a>
  * @author <a href="mailto:tom.fennelly at jboss.com">Tom Fennelly</a>
  */
-public class SerializationException extends Exception
+public class SerializationException extends JBossESBException
 {
 
     /**
      * Public constructor.
+     *
      * @param message The message.
      */
     public SerializationException(final String message)
@@ -41,8 +44,9 @@
 
     /**
      * Public constructor.
+     *
      * @param message The message.
-     * @param cause The cause.
+     * @param cause   The cause.
      */
     public SerializationException(final String message, final Throwable cause)
     {

Added: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/JBossESBException.java
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/JBossESBException.java	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/JBossESBException.java	2008-08-13 12:02:31 UTC (rev 21507)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * 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,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ * (C) 2005-2006, JBoss Inc.
+ */
+package org.jboss.esb;
+
+/**
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public class JBossESBException extends Exception
+{
+    /**
+     * Public Constructor.
+     *
+     * @param message Exception message.
+     */
+    public JBossESBException(final String message)
+    {
+        super(message);
+    }
+
+    /**
+     * Public Constructor.
+     *
+     * @param message Exception message.
+     * @param cause   Exception cause.
+     */
+    public JBossESBException(final String message, final Throwable cause)
+    {
+        super(message, cause);
+    }
+}


Property changes on: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/JBossESBException.java
___________________________________________________________________
Name: svn:eol-style
   + native

Added: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/Service.java
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/Service.java	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/Service.java	2008-08-13 12:02:31 UTC (rev 21507)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * 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,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ * (C) 2005-2006, JBoss Inc.
+ */
+package org.jboss.esb.service;
+
+import org.jboss.esb.message.Message;
+
+/**
+ * ESB Service interface.
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public interface Service
+{
+    /**
+     * Service process method.
+     * @param message The message to be processed.
+     * @return The resultant {@link Message}.
+     * @throws ServiceException Service exception processing the message.
+     */
+    Message process(final Message message) throws ServiceException;
+}
\ No newline at end of file


Property changes on: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/Service.java
___________________________________________________________________
Name: svn:eol-style
   + native

Added: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/ServiceException.java
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/ServiceException.java	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/ServiceException.java	2008-08-13 12:02:31 UTC (rev 21507)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * 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,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ * (C) 2005-2006, JBoss Inc.
+ */
+package org.jboss.esb.service;
+
+import org.jboss.esb.JBossESBException;
+
+/**
+ * Service Exception.
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public class ServiceException extends JBossESBException
+{
+    /**
+     * Public Constructor.
+     *
+     * @param message Exception message.
+     */
+    public ServiceException(final String message)
+    {
+        super(message);
+    }
+
+    /**
+     * Public Constructor.
+     *
+     * @param message Exception message.
+     * @param cause   Exception cause.
+     */
+    public ServiceException(final String message, final Throwable cause)
+    {
+        super(message, cause);
+    }
+}


Property changes on: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/ServiceException.java
___________________________________________________________________
Name: svn:eol-style
   + native




More information about the jboss-svn-commits mailing list