[jboss-svn-commits] JBL Code SVN: r21523 - in labs/jbossesb/workspace/skeagh: api/routing and 14 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Aug 13 12:56:56 EDT 2008


Author: tfennelly
Date: 2008-08-13 12:56:56 -0400 (Wed, 13 Aug 2008)
New Revision: 21523

Added:
   labs/jbossesb/workspace/skeagh/api/routing/
   labs/jbossesb/workspace/skeagh/api/routing/pom.xml
   labs/jbossesb/workspace/skeagh/api/routing/src/
   labs/jbossesb/workspace/skeagh/api/routing/src/main/
   labs/jbossesb/workspace/skeagh/api/routing/src/main/java/
   labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/
   labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/
   labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/
   labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/
   labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/InboundRouter.java
   labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/MessageDispatcher.java
   labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/OutboundRouter.java
   labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/RoutingException.java
   labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/package.html
   labs/jbossesb/workspace/skeagh/api/routing/src/main/java/overview.html
   labs/jbossesb/workspace/skeagh/api/routing/src/main/resources/
   labs/jbossesb/workspace/skeagh/api/routing/src/test/
   labs/jbossesb/workspace/skeagh/api/routing/src/test/java/
   labs/jbossesb/workspace/skeagh/api/routing/src/test/resources/
   labs/jbossesb/workspace/skeagh/api/service/src/main/java/org/jboss/esb/annotations/
   labs/jbossesb/workspace/skeagh/api/service/src/main/java/org/jboss/esb/annotations/Initialize.java
   labs/jbossesb/workspace/skeagh/api/service/src/main/java/org/jboss/esb/annotations/Inject.java
   labs/jbossesb/workspace/skeagh/api/service/src/main/java/org/jboss/esb/annotations/Uninitialize.java
   labs/jbossesb/workspace/skeagh/api/service/src/main/java/org/jboss/esb/annotations/package.html
   labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/
   labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/ConfigurationUnit.java
   labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/Deployment.java
   labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/DeploymentException.java
   labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/package.html
Modified:
   labs/jbossesb/workspace/skeagh/api/pom.xml
   labs/jbossesb/workspace/skeagh/api/service/pom.xml
   labs/jbossesb/workspace/skeagh/runtime/pom.xml
Log:
More skeleton code

Modified: labs/jbossesb/workspace/skeagh/api/pom.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/api/pom.xml	2008-08-13 16:30:43 UTC (rev 21522)
+++ labs/jbossesb/workspace/skeagh/api/pom.xml	2008-08-13 16:56:56 UTC (rev 21523)
@@ -20,6 +20,7 @@
 
     <modules>
         <module>service</module>
+        <module>routing</module>
     </modules>
 
 </project>

Added: labs/jbossesb/workspace/skeagh/api/routing/pom.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/api/routing/pom.xml	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/api/routing/pom.xml	2008-08-13 16:56:56 UTC (rev 21523)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>jboss.jbossesb</groupId>
+        <artifactId>api</artifactId>
+        <version>5.0-SNAPSHOT</version>
+    </parent>
+    <name>JBoss ESB - API Routing</name>
+    <groupId>jboss.jbossesb</groupId>
+    <artifactId>jbossesb-api-routing</artifactId>
+    <version>${jboss.esb.version}</version>
+    <url>http://www.jboss.org/jbossesb/</url>
+
+    <dependencies>
+        <dependency>
+            <groupId>jboss.jbossesb</groupId>
+            <artifactId>jbossesb-api-service</artifactId>
+            <version>${jboss.esb.version}</version>
+        </dependency>
+    </dependencies>
+</project>
\ No newline at end of file


Property changes on: labs/jbossesb/workspace/skeagh/api/routing/pom.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Added: labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/InboundRouter.java
===================================================================
--- labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/InboundRouter.java	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/InboundRouter.java	2008-08-13 16:56:56 UTC (rev 21523)
@@ -0,0 +1,39 @@
+/*
+ * 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.routing;
+
+/**
+ * Inbound Router.
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public interface InboundRouter
+{
+    /**
+     * Set the {@link MessageDispatcher} for the router.
+     * <p/>
+     * Implementations use the dispatcher to dispatch messages to the
+     * consuming Service.  The ESB runtime handles the details of delivering the
+     * message to the interested Service.
+     *
+     * @param dispatcher The {@link MessageDispatcher} instance.
+     */
+    void setDispatcher(MessageDispatcher dispatcher);
+}


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

Added: labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/MessageDispatcher.java
===================================================================
--- labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/MessageDispatcher.java	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/MessageDispatcher.java	2008-08-13 16:56:56 UTC (rev 21523)
@@ -0,0 +1,44 @@
+/*
+ * 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.routing;
+
+import org.jboss.esb.message.Message;
+
+/**
+ * Message Dispatcher.
+ * <p/>
+ * An implementation of this class is injected into every {@link InboundRouter}
+ * instance, which uses it to dispatch the Messages it is receiving to the
+ * target Service that is interested in them.  Basically, it's a mechanism
+ * for allowing the router to forward the Message to the core ESB runtime for
+ * dispatch to the target Service. 
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public interface MessageDispatcher
+{
+    /**
+     * Dispatch the message to the target service.
+     *
+     * @param message The message to be dispatched.
+     * @throws RoutingException An exception occured while dispatching the message.
+     */
+    void dispatch(Message message) throws RoutingException;
+}


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

Added: labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/OutboundRouter.java
===================================================================
--- labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/OutboundRouter.java	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/OutboundRouter.java	2008-08-13 16:56:56 UTC (rev 21523)
@@ -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.routing;
+
+import org.jboss.esb.message.Message;
+
+/**
+ * Outbound Router.
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public interface OutboundRouter
+{
+    /**
+     * Route the message.
+     *
+     * @param message The message to be routed.
+     * @throws RoutingException An exception occured while routing the message.
+     */
+    void route(Message message) throws RoutingException;
+}
\ No newline at end of file


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

Added: labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/RoutingException.java
===================================================================
--- labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/RoutingException.java	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/RoutingException.java	2008-08-13 16:56:56 UTC (rev 21523)
@@ -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.routing;
+
+import org.jboss.esb.JBossESBException;
+
+/**
+ * Routing exception.
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public class RoutingException extends JBossESBException
+{
+    /**
+     * Public Constructor.
+     *
+     * @param message Exception message.
+     */
+    public RoutingException(final String message)
+    {
+        super(message);
+    }
+
+    /**
+     * Public Constructor.
+     *
+     * @param message Exception message.
+     * @param cause   Exception cause.
+     */
+    public RoutingException(final String message, final Throwable cause)
+    {
+        super(message, cause);
+    }
+}


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

Added: labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/package.html
===================================================================
--- labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/package.html	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/api/routing/src/main/java/org/jboss/esb/routing/package.html	2008-08-13 16:56:56 UTC (rev 21523)
@@ -0,0 +1,8 @@
+<html>
+<head></head>
+<body>
+ESB Message Routing.
+
+<h2>Package Specification</h2>
+</body>
+</html>
\ No newline at end of file

Added: labs/jbossesb/workspace/skeagh/api/routing/src/main/java/overview.html
===================================================================
--- labs/jbossesb/workspace/skeagh/api/routing/src/main/java/overview.html	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/api/routing/src/main/java/overview.html	2008-08-13 16:56:56 UTC (rev 21523)
@@ -0,0 +1,9 @@
+<html>
+<head></head>
+<body>
+JBoss ESB - Routing API.
+
+<h1>Overview</h1>
+This is the Core Routing API for JBoss ESB.
+</body>
+</html>
\ No newline at end of file

Modified: labs/jbossesb/workspace/skeagh/api/service/pom.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/api/service/pom.xml	2008-08-13 16:30:43 UTC (rev 21522)
+++ labs/jbossesb/workspace/skeagh/api/service/pom.xml	2008-08-13 16:56:56 UTC (rev 21523)
@@ -7,9 +7,9 @@
         <artifactId>api</artifactId>
         <version>5.0-SNAPSHOT</version>
     </parent>
-    <name>JBoss ESB - Service API</name>
+    <name>JBoss ESB - API Service</name>
     <groupId>jboss.jbossesb</groupId>
-    <artifactId>jbossesb-service-api</artifactId>
+    <artifactId>jbossesb-api-service</artifactId>
     <version>${jboss.esb.version}</version>
     <url>http://www.jboss.org/jbossesb/</url>
 

Added: labs/jbossesb/workspace/skeagh/api/service/src/main/java/org/jboss/esb/annotations/Initialize.java
===================================================================
--- labs/jbossesb/workspace/skeagh/api/service/src/main/java/org/jboss/esb/annotations/Initialize.java	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/api/service/src/main/java/org/jboss/esb/annotations/Initialize.java	2008-08-13 16:56:56 UTC (rev 21523)
@@ -0,0 +1,37 @@
+/*
+ * 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.annotations;
+
+import java.lang.annotation.*;
+
+/**
+ * Initialization method annotation.
+ * <p/>
+ * Can be used by any ESB component ({@link org.jboss.esb.service.Service} etc)
+ * to flag that component as requiring deployment-time initialization via that method (zero-arg).
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+ at Documented
+ at Retention(RetentionPolicy.RUNTIME)
+ at Target({ ElementType.METHOD })
+public @interface Initialize
+{
+}


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

Added: labs/jbossesb/workspace/skeagh/api/service/src/main/java/org/jboss/esb/annotations/Inject.java
===================================================================
--- labs/jbossesb/workspace/skeagh/api/service/src/main/java/org/jboss/esb/annotations/Inject.java	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/api/service/src/main/java/org/jboss/esb/annotations/Inject.java	2008-08-13 16:56:56 UTC (rev 21523)
@@ -0,0 +1,73 @@
+/*
+ * 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.annotations;
+
+import java.lang.annotation.*;
+
+/**
+ * Field value injection annotation.
+ * <p/>
+ * Used on component implementations to flag a field definition for value injection.
+ * Supported for:
+ * <ul>
+ *  <li>Injection of the components configuration.</li>
+ *  <li>Injection of some of the core runtime contexts etc.</li>
+ * </ul>
+ *
+ * <h3>Examples</h3>
+ * <i>Configuration injection on an InboundRouter</i>:
+ * <pre>
+ * public class MyRouter implements InboundRouter {
+ *
+ *     &#x40;Inject
+ *     private MyRouterConfig myRouterConfig;
+ *
+ *     ....
+ * }
+ * </pre>
+ * <i>On an InboundRouter Implementation</i>:
+ * <pre>
+ * public class MyRouter implements InboundRouter {
+ * 
+ *     &#x40;Inject
+ *     private DeploymentContext deploymentContext;
+ *
+ *     ....
+ * }
+ * </pre>
+ * <i>On an Service Implementation</i>:
+ * <pre>
+ * public class MyService implements Service {
+ *
+ *     &#x40;Inject
+ *     private DeploymentContext deploymentContext;
+ *
+ *     ....
+ * }
+ * </pre>
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+ at Documented
+ at Retention(RetentionPolicy.RUNTIME)
+ at Target({ ElementType.FIELD })
+public @interface Inject
+{
+}


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

Added: labs/jbossesb/workspace/skeagh/api/service/src/main/java/org/jboss/esb/annotations/Uninitialize.java
===================================================================
--- labs/jbossesb/workspace/skeagh/api/service/src/main/java/org/jboss/esb/annotations/Uninitialize.java	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/api/service/src/main/java/org/jboss/esb/annotations/Uninitialize.java	2008-08-13 16:56:56 UTC (rev 21523)
@@ -0,0 +1,37 @@
+/*
+ * 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.annotations;
+
+import java.lang.annotation.*;
+
+/**
+ * Uninitialization method annotation.
+ * <p/>
+ * Can be used by any ESB component ({@link org.jboss.esb.service.Service} etc)
+ * to flag that component as requiring undeployment-time uninitialization via that method (zero-arg).
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+ at Documented
+ at Retention(RetentionPolicy.RUNTIME)
+ at Target({ ElementType.METHOD })
+public @interface Uninitialize
+{
+}


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

Added: labs/jbossesb/workspace/skeagh/api/service/src/main/java/org/jboss/esb/annotations/package.html
===================================================================
--- labs/jbossesb/workspace/skeagh/api/service/src/main/java/org/jboss/esb/annotations/package.html	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/api/service/src/main/java/org/jboss/esb/annotations/package.html	2008-08-13 16:56:56 UTC (rev 21523)
@@ -0,0 +1,8 @@
+<html>
+<head></head>
+<body>
+ESB Core Annotations.
+
+<h2>Package Specification</h2>
+</body>
+</html>
\ No newline at end of file

Modified: labs/jbossesb/workspace/skeagh/runtime/pom.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/pom.xml	2008-08-13 16:30:43 UTC (rev 21522)
+++ labs/jbossesb/workspace/skeagh/runtime/pom.xml	2008-08-13 16:56:56 UTC (rev 21523)
@@ -21,8 +21,13 @@
         </dependency>
         <dependency>
             <groupId>jboss.jbossesb</groupId>
-            <artifactId>jbossesb-service-api</artifactId>
+            <artifactId>jbossesb-api-service</artifactId>
             <version>${jboss.esb.version}</version>
         </dependency>
+        <dependency>
+            <groupId>jboss.jbossesb</groupId>
+            <artifactId>jbossesb-api-routing</artifactId>
+            <version>${jboss.esb.version}</version>
+        </dependency>
     </dependencies>
 </project>
\ No newline at end of file

Added: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/ConfigurationUnit.java
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/ConfigurationUnit.java	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/ConfigurationUnit.java	2008-08-13 16:56:56 UTC (rev 21523)
@@ -0,0 +1,92 @@
+/*
+ * 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.deploy;
+
+import org.jboss.esb.routing.InboundRouter;
+import org.jboss.esb.routing.OutboundRouter;
+import org.jboss.esb.service.Service;
+import org.jboss.esb.service.ServiceName;
+
+import java.io.Reader;
+import java.util.ArrayList;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * JBoss ESB Configuration Unit.
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public class ConfigurationUnit
+{
+    /**
+     * List of Inbound routers defined in the configuration.
+     */
+    private List<InboundRouter> inboundRouters = new ArrayList<InboundRouter>();
+    /**
+     * List of Services defined in the configuration.
+     */
+    private Map<ServiceName, Service> services = new LinkedHashMap<ServiceName, Service>();
+    /**
+     * List of Outbound routers defined in the configuration.
+     */
+    private List<OutboundRouter> outboundRouters = new ArrayList<OutboundRouter>();
+
+    /**
+     * Public constructor.
+     *
+     * @param configStream Configuration stream.
+     */
+    public ConfigurationUnit(final Reader configStream)
+    {
+        // TODO digest the config stream into the list of routers and services...
+    }
+
+    /**
+     * Get the List of Inbound routers defined in the configuration.
+     *
+     * @return The List of Inbound routers defined in the configuration.
+     */
+    public final List<InboundRouter> getInboundRouters()
+    {
+        return inboundRouters;
+    }
+
+    /**
+     * Get the List of Services defined in the configuration (mapped by ServiceName).
+     *
+     * @return The List of Inbound routers defined in the configuration.
+     */
+    public final Map<ServiceName, Service> getServices()
+    {
+        return services;
+    }
+
+    /**
+     * Get the List of Outbound routers defined in the configuration.
+     *
+     * @return The List of Outbound routers defined in the configuration.
+     */
+    public final List<OutboundRouter> getOutboundRouters()
+    {
+        return outboundRouters;
+    }
+}


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

Added: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/Deployment.java
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/Deployment.java	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/Deployment.java	2008-08-13 16:56:56 UTC (rev 21523)
@@ -0,0 +1,111 @@
+/*
+ * 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.deploy;
+
+import org.jboss.esb.context.DeploymentContext;
+import org.jboss.esb.util.AssertArgument;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * JBoss ESB Deployment.
+ * <p/>
+ * Represents the basic JBoss ESB deployment unit.
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public class Deployment
+{
+    /**
+     * Deployment Context.
+     */
+    private DeploymentContext context;
+
+    /**
+     * The list of configurations associated with this deployment instance.
+     */
+    private List<ConfigurationUnit> configurationList = new ArrayList<ConfigurationUnit>();
+
+    /**
+     * Public default constructor.
+     */
+    public Deployment()
+    {
+        this.context = new DeploymentContext();
+    }
+
+    /**
+     * Get the {@link DeploymentContext} associated with this deployment.
+     *
+     * @return Depolyment Context.
+     */
+    public final DeploymentContext getContext()
+    {
+        return context;
+    }
+
+    /**
+     * Add a {@link ConfigurationUnit} to this Deployment.
+     *
+     * @param configuration Configuration Unit to be added.
+     */
+    public final void add(final ConfigurationUnit configuration)
+    {
+        AssertArgument.isNotNull(configuration, "configuration");
+        configurationList.add(configuration);
+    }
+
+    /**
+     * Deploy the Deployment.
+     *
+     * @throws DeploymentException Error deploying ESB Deployment.
+     */
+    public final void deploy() throws DeploymentException
+    {
+        assertConfigurationsAdded();
+
+        // TODO: implement...
+    }
+
+    /**
+     * Undeploy the Deployment.
+     *
+     * @throws DeploymentException Error undeploying ESB Deployment.
+     */
+    public final void undeploy() throws DeploymentException
+    {
+        // TODO: implement...
+    }
+
+    /**
+     * Assert whether or not ESB configurations have been added to this
+     * Deployment.
+     *
+     * @throws DeploymentException No configurations have been added to this deployment.
+     */
+    private void assertConfigurationsAdded() throws DeploymentException
+    {
+        if (!configurationList.isEmpty())
+        {
+            throw new DeploymentException("Deployment not yet configured.  Unable to deploy.");
+        }
+    }
+}


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

Added: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/DeploymentException.java
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/DeploymentException.java	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/DeploymentException.java	2008-08-13 16:56:56 UTC (rev 21523)
@@ -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.deploy;
+
+import org.jboss.esb.JBossESBException;
+
+/**
+ * ESB Deployment Exception.
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public class DeploymentException extends JBossESBException
+{
+    /**
+     * Public Constructor.
+     *
+     * @param message Exception message.
+     */
+    public DeploymentException(final String message)
+    {
+        super(message);
+    }
+
+    /**
+     * Public Constructor.
+     *
+     * @param message Exception message.
+     * @param cause   Exception cause.
+     */
+    public DeploymentException(final String message, final Throwable cause)
+    {
+        super(message, cause);
+    }
+}


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

Copied: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/package.html (from rev 21514, labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/serialization/package.html)
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/package.html	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/package.html	2008-08-13 16:56:56 UTC (rev 21523)
@@ -0,0 +1,8 @@
+<html>
+<head></head>
+<body>
+ESB Deployment.
+
+<h2>Package Specification</h2>
+</body>
+</html>
\ No newline at end of file




More information about the jboss-svn-commits mailing list