[jboss-svn-commits] JBL Code SVN: r21053 - in labs/jbossesb/workspace/skeagh: commons and 22 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Jul 16 09:40:49 EDT 2008
Author: tfennelly
Date: 2008-07-16 09:40:48 -0400 (Wed, 16 Jul 2008)
New Revision: 21053
Added:
labs/jbossesb/workspace/skeagh/commons/
labs/jbossesb/workspace/skeagh/commons/pom.xml
labs/jbossesb/workspace/skeagh/commons/src/
labs/jbossesb/workspace/skeagh/commons/src/main/
labs/jbossesb/workspace/skeagh/commons/src/main/java/
labs/jbossesb/workspace/skeagh/commons/src/main/java/org/
labs/jbossesb/workspace/skeagh/commons/src/main/java/org/jboss/
labs/jbossesb/workspace/skeagh/commons/src/main/java/org/jboss/esb/
labs/jbossesb/workspace/skeagh/commons/src/main/java/overview.html
labs/jbossesb/workspace/skeagh/commons/src/main/resources/
labs/jbossesb/workspace/skeagh/commons/src/test/
labs/jbossesb/workspace/skeagh/commons/src/test/java/
labs/jbossesb/workspace/skeagh/commons/src/test/resources/
labs/jbossesb/workspace/skeagh/runtime/
labs/jbossesb/workspace/skeagh/runtime/pom.xml
labs/jbossesb/workspace/skeagh/runtime/src/
labs/jbossesb/workspace/skeagh/runtime/src/main/
labs/jbossesb/workspace/skeagh/runtime/src/main/java/
labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/
labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/
labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/
labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/serialization/
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/Serializer.java
labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/serialization/java/
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/serialization/xml/
labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/serialization/xml/message.xsd
labs/jbossesb/workspace/skeagh/runtime/src/main/java/overview.html
labs/jbossesb/workspace/skeagh/runtime/src/main/resources/
labs/jbossesb/workspace/skeagh/runtime/src/test/
labs/jbossesb/workspace/skeagh/runtime/src/test/java/
labs/jbossesb/workspace/skeagh/runtime/src/test/resources/
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/ESBContext.java
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/InvocationContext.java
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/package.html
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/invocation/
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/invocation/InvocationParameters.java
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/invocation/ServiceInvoker.java
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/invocation/package.html
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/message/doc-files/
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/message/doc-files/4.x-to-5.x-devnotes.html
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/message/package.html
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/package.html
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/ServiceName.java
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/package.html
Removed:
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/ExecutionContext.java
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/ServiceName.java
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/message/MessageContext.java
Modified:
labs/jbossesb/workspace/skeagh/pom.xml
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/AddressingContext.java
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/DeploymentContext.java
labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/message/Message.java
Log:
more 5.x initial code
Added: labs/jbossesb/workspace/skeagh/commons/pom.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/commons/pom.xml (rev 0)
+++ labs/jbossesb/workspace/skeagh/commons/pom.xml 2008-07-16 13:40:48 UTC (rev 21053)
@@ -0,0 +1,15 @@
+<?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>jbossesb</artifactId>
+ <version>5.0</version>
+ </parent>
+ <name>JBoss ESB - Commons</name>
+ <groupId>jboss.jbossesb</groupId>
+ <artifactId>jbossesb-commons</artifactId>
+ <version>${jboss.esb.version}</version>
+ <url>http://www.jboss.org/jbossesb/</url>
+
+</project>
\ No newline at end of file
Property changes on: labs/jbossesb/workspace/skeagh/commons/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: labs/jbossesb/workspace/skeagh/commons/src/main/java/overview.html
===================================================================
--- labs/jbossesb/workspace/skeagh/commons/src/main/java/overview.html (rev 0)
+++ labs/jbossesb/workspace/skeagh/commons/src/main/java/overview.html 2008-07-16 13:40:48 UTC (rev 21053)
@@ -0,0 +1,9 @@
+<html>
+ <head></head>
+ <body>
+ JBoss ESB - Commons.
+
+ <h1>Overview</h1>
+ Commonss code used across many ESB modules - utility code etc.
+ </body>
+</html>
\ No newline at end of file
Modified: labs/jbossesb/workspace/skeagh/pom.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/pom.xml 2008-07-16 09:16:43 UTC (rev 21052)
+++ labs/jbossesb/workspace/skeagh/pom.xml 2008-07-16 13:40:48 UTC (rev 21053)
@@ -10,11 +10,13 @@
<url>http://www.jboss.org/jbossesb/</url>
<properties>
- <jboss.esb.version>5.0</jboss.esb.version>
+ <jboss.esb.version>5.0-SNAPSHOT</jboss.esb.version>
</properties>
<modules>
+ <module>commons</module>
<module>service-api</module>
+ <module>runtime</module>
</modules>
<dependencies>
Added: labs/jbossesb/workspace/skeagh/runtime/pom.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/pom.xml (rev 0)
+++ labs/jbossesb/workspace/skeagh/runtime/pom.xml 2008-07-16 13:40:48 UTC (rev 21053)
@@ -0,0 +1,28 @@
+<?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>jbossesb</artifactId>
+ <version>5.0</version>
+ </parent>
+ <name>JBoss ESB - Runtime</name>
+ <groupId>jboss.jbossesb</groupId>
+ <artifactId>jbossesb-rt</artifactId>
+ <version>${jboss.esb.version}</version>
+ <url>http://www.jboss.org/jbossesb/</url>
+
+ <dependencies>
+ <dependency>
+ <groupId>jboss.jbossesb</groupId>
+ <artifactId>jbossesb-commons</artifactId>
+ <version>${jboss.esb.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>jboss.jbossesb</groupId>
+ <artifactId>jbossesb-service-api</artifactId>
+ <version>${jboss.esb.version}</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Property changes on: labs/jbossesb/workspace/skeagh/runtime/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: 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 (rev 0)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/serialization/SerializationException.java 2008-07-16 13:40:48 UTC (rev 21053)
@@ -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.serialization;
+
+/**
+ * Serialization/Deserialization Exception.
+ *
+ * @author <a href="mailto:Kevin.Conner at jboss.com">Kevin Conner</a>
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ * @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 SerializationException(String message) {
+ super(message);
+ }
+
+ public SerializationException(String message, Throwable cause) {
+ super(message, cause);
+ }
+}
Property changes on: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/serialization/SerializationException.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/serialization/Serializer.java
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/serialization/Serializer.java (rev 0)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/serialization/Serializer.java 2008-07-16 13:40:48 UTC (rev 21053)
@@ -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.serialization;
+
+import org.jboss.esb.message.Message;
+
+/**
+ * Message Serialization/Deserialization.
+ *
+ * @author <a href="mailto:Kevin.Conner at jboss.com">Kevin Conner</a>
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ * @author <a href="mailto:dbevenius at redhat.com">Daniel Bevenius</a>
+ * @author <a href="mailto:tom.fennelly at jboss.com">Tom Fennelly</a>
+ */
+public interface Serializer {
+
+ public byte[] marshal(Message messageObject) throws SerializationException;
+
+ public Message unmarshal(byte[] messageBytes) throws SerializationException;
+}
Property changes on: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/serialization/Serializer.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: 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/serialization/package.html (rev 0)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/serialization/package.html 2008-07-16 13:40:48 UTC (rev 21053)
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ ESB Message Serialization.
+
+ <h2>Package Specification</h2>
+ </body>
+</html>
\ No newline at end of file
Added: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/serialization/xml/message.xsd
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/serialization/xml/message.xsd (rev 0)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/serialization/xml/message.xsd 2008-07-16 13:40:48 UTC (rev 21053)
@@ -0,0 +1 @@
+TODO...
\ No newline at end of file
Property changes on: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/serialization/xml/message.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: labs/jbossesb/workspace/skeagh/runtime/src/main/java/overview.html
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/main/java/overview.html (rev 0)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/overview.html 2008-07-16 13:40:48 UTC (rev 21053)
@@ -0,0 +1,9 @@
+<html>
+ <head></head>
+ <body>
+ JBoss ESB Runtime.
+
+ <h1>Overview</h1>
+ Core ESB Runtime framework classes.
+ </body>
+</html>
\ No newline at end of file
Modified: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/AddressingContext.java
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/AddressingContext.java 2008-07-16 09:16:43 UTC (rev 21052)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/AddressingContext.java 2008-07-16 13:40:48 UTC (rev 21053)
@@ -1,14 +1,74 @@
+/*
+ * 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.context;
-public abstract class AddressingContext
-{
- public static AddressingContext getAddressingContext()
- {
- return null ;
+import org.jboss.esb.service.ServiceName;
+
+/**
+ * Message Addressing Context.
+ *
+ * @author <a href="mailto:Kevin.Conner at jboss.com">Kevin Conner</a>
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ * @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 AddressingContext {
+
+ private ServiceName to;
+ private ServiceName from;
+ private ServiceName replyTo;
+ private ServiceName faultTo;
+
+ public static AddressingContext getAddressingContext() {
+ return null;
}
-
- public abstract ServiceName getTo() ;
- public abstract ServiceName getFrom() ;
- public abstract ServiceName getReplyTo() ;
- public abstract ServiceName getFaultTo() ;
+
+ public ServiceName getTo() {
+ return to;
+ }
+
+ public void setTo(ServiceName to) {
+ this.to = to;
+ }
+
+ public ServiceName getFrom() {
+ return from;
+ }
+
+ public void setFrom(ServiceName from) {
+ this.from = from;
+ }
+
+ public ServiceName getReplyTo() {
+ return replyTo;
+ }
+
+ public void setReplyTo(ServiceName replyTo) {
+ this.replyTo = replyTo;
+ }
+
+ public ServiceName getFaultTo() {
+ return faultTo;
+ }
+
+ public void setFaultTo(ServiceName faultTo) {
+ this.faultTo = faultTo;
+ }
}
Modified: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/DeploymentContext.java
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/DeploymentContext.java 2008-07-16 09:16:43 UTC (rev 21052)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/DeploymentContext.java 2008-07-16 13:40:48 UTC (rev 21053)
@@ -1,15 +1,55 @@
+/*
+ * 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.context;
+import java.util.LinkedHashMap;
import java.util.Map;
-public abstract class DeploymentContext
-{
- public static DeploymentContext getDeploymentContext()
- {
- return null ;
+/**
+ * Deployment Context.
+ * <p/>
+ * Mutable context scoped around the deployment unit to which the caller
+ * is part of.
+ *
+ * @author <a href="mailto:Kevin.Conner at jboss.com">Kevin Conner</a>
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ * @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 DeploymentContext implements ESBContext {
+
+ private Map<Object, Object> contextMap = new LinkedHashMap<Object, Object>();
+
+ public static DeploymentContext getDeploymentContext() {
+ return null;
}
-
- public abstract Object get(final String name) ;
- public abstract void set(final String name, final Object value) ;
- public abstract Map<String, Object> getAll() ;
+
+ public Object get(Object key) {
+ return contextMap.get(key);
+ }
+
+ public void set(Object key, Object value) {
+ contextMap.put(key, value);
+ }
+
+ public Map<Object, Object> getAll() {
+ return contextMap;
+ }
}
Added: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/ESBContext.java
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/ESBContext.java (rev 0)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/ESBContext.java 2008-07-16 13:40:48 UTC (rev 21053)
@@ -0,0 +1,54 @@
+/*
+ * 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.context;
+
+import java.util.Map;
+
+/**
+ * ESB Context.
+ *
+ * @author <a href="mailto:Kevin.Conner at jboss.com">Kevin Conner</a>
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ * @author <a href="mailto:dbevenius at redhat.com">Daniel Bevenius</a>
+ * @author <a href="mailto:tom.fennelly at jboss.com">Tom Fennelly</a>
+ */
+public interface ESBContext {
+
+ /**
+ * Get an object from the context.
+ * @param key The context object key.
+ * @return The Object instance, or null if the Object is not bound to the
+ * context instance.
+ */
+ public Object get(final Object key);
+
+ /**
+ * Set an object on the context.
+ * @param key The context object key.
+ * @param value The object instance.
+ */
+ public void set(final Object key, final Object value);
+
+ /**
+ * Get all the context objects.
+ * @return The context Map.
+ */
+ public Map<Object, Object> getAll();
+}
Property changes on: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/ESBContext.java
___________________________________________________________________
Name: svn:eol-style
+ native
Deleted: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/ExecutionContext.java
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/ExecutionContext.java 2008-07-16 09:16:43 UTC (rev 21052)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/ExecutionContext.java 2008-07-16 13:40:48 UTC (rev 21053)
@@ -1,13 +0,0 @@
-package org.jboss.esb.context;
-
-import java.util.Map;
-
-public abstract class ExecutionContext
-{
- public static ExecutionContext getExecutionContext()
- {
- return null ;
- }
-
- public abstract Map<String, String> getProperties() ;
-}
Copied: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/InvocationContext.java (from rev 21042, labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/ExecutionContext.java)
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/InvocationContext.java (rev 0)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/InvocationContext.java 2008-07-16 13:40:48 UTC (rev 21053)
@@ -0,0 +1,70 @@
+/*
+ * 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.context;
+
+import org.jboss.esb.invocation.InvocationParameters;
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+/**
+ * InvocationContext Context.
+ * <p/>
+ * Mutable context scoped around a ServiceInvocation.
+ *
+ * @author <a href="mailto:Kevin.Conner at jboss.com">Kevin Conner</a>
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ * @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 InvocationContext implements ESBContext {
+
+ private Map<Object, Object> contextMap = new LinkedHashMap<Object, Object>();
+
+ public static InvocationContext getInvocationContext() {
+ return null;
+ }
+
+ public Object get(Object key) {
+ return contextMap.get(key);
+ }
+
+ public void set(Object key, Object value) {
+ contextMap.put(key, value);
+ }
+
+ public Map<Object, Object> getAll() {
+ return contextMap;
+ }
+
+ /**
+ * Get the {@link org.jboss.esb.invocation.InvocationParameters} associated with this
+ * Invocation.
+ * <p/>
+ * TODO: Should we have this as a non-static method on this class?
+ *
+ * @return The InvocationParameters instance, or null if no
+ * InvocationParameters were sent with the {@link org.jboss.esb.message.Message}
+ * during the Service Invocation.
+ */
+ public static InvocationParameters getInvocationParameters() {
+ return null;
+ }
+}
Property changes on: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/InvocationContext.java
___________________________________________________________________
Name: svn:eol-style
+ native
Deleted: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/ServiceName.java
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/ServiceName.java 2008-07-16 09:16:43 UTC (rev 21052)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/ServiceName.java 2008-07-16 13:40:48 UTC (rev 21053)
@@ -1,24 +0,0 @@
-package org.jboss.esb.context;
-
-
-public class ServiceName
-{
- private final String category ;
- private final String name ;
-
- public ServiceName(final String category, final String name)
- {
- this.category = category ;
- this.name = name ;
- }
-
- public String getCategory()
- {
- return category ;
- }
-
- public String getName()
- {
- return name ;
- }
-}
Added: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/package.html
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/package.html (rev 0)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/package.html 2008-07-16 13:40:48 UTC (rev 21053)
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ ESB Context.
+
+ <h2>Package Specification</h2>
+ </body>
+</html>
\ No newline at end of file
Added: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/invocation/InvocationParameters.java
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/invocation/InvocationParameters.java (rev 0)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/invocation/InvocationParameters.java 2008-07-16 13:40:48 UTC (rev 21053)
@@ -0,0 +1,58 @@
+/*
+ * 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.invocation;
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+/**
+ * Imutable Service Invocation Parameters.
+ * <p/>
+ * An ESB {@link org.jboss.esb.message.Message} is an integral part of
+ * any Service Invocation. That's not the full picture however. Sometimes
+ * it is necessary to send "Invocation Parameters" in parallel with the
+ * basic ESB {@link org.jboss.esb.message.Message} e.g. parameters that
+ * identify a process instance on the target Service.
+ * <p/>
+ * A Service can access the InvocationParameters instance (associated with the
+ * Message it is currently processing) via the
+ * {@link org.jboss.esb.context.InvocationContext#getInvocationParameters()} method.
+ *
+ * @author <a href="mailto:Kevin.Conner at jboss.com">Kevin Conner</a>
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ * @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 InvocationParameters {
+
+ private Map<String, Object> parameters = new LinkedHashMap<String, Object>();
+
+ public InvocationParameters(Map<String, Object> parameters) {
+ this.parameters = parameters;
+ }
+
+ public Object getParameter(String name) {
+ return parameters.get(name);
+ }
+
+ public Map<String, Object> getParameters() {
+ return parameters;
+ }
+}
Property changes on: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/invocation/InvocationParameters.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/invocation/ServiceInvoker.java
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/invocation/ServiceInvoker.java (rev 0)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/invocation/ServiceInvoker.java 2008-07-16 13:40:48 UTC (rev 21053)
@@ -0,0 +1,46 @@
+/*
+ * 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.invocation;
+
+import org.jboss.esb.service.ServiceName;
+import org.jboss.esb.message.Message;
+
+/**
+ * Service Invoker.
+ *
+ * @author <a href="mailto:Kevin.Conner at jboss.com">Kevin Conner</a>
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ * @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 ServiceInvoker {
+
+ public static ServiceInvoker getServiceInvoker() {
+ return null;
+ }
+
+ public void send(final ServiceName name, final Message message, final ServiceName responseName) {
+
+ }
+
+ public void sendOneWay(final ServiceName name, final Message message) {
+
+ }
+}
Property changes on: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/invocation/ServiceInvoker.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/invocation/package.html
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/invocation/package.html (rev 0)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/invocation/package.html 2008-07-16 13:40:48 UTC (rev 21053)
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ ESB Invocation.
+
+ <h2>Package Specification</h2>
+ </body>
+</html>
\ No newline at end of file
Modified: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/message/Message.java
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/message/Message.java 2008-07-16 09:16:43 UTC (rev 21052)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/message/Message.java 2008-07-16 13:40:48 UTC (rev 21053)
@@ -1,10 +1,74 @@
+/*
+ * 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.message;
+import org.jboss.esb.invocation.InvocationParameters;
+
+import java.util.LinkedHashMap;
import java.util.Map;
-public interface Message
-{
- public Object getPayload() ;
-
- public Map<String, Object> getAttachments() ;
+/**
+ * JBoss ESB Message.
+ * <p/>
+ * <b>Note</b>: <i>For those moving from JBossESB 4.x, please read the
+ * <a href="doc-files/4.x-to-5.x-devnotes.html#message">4.x to 5.x Developer Notes</a></i>.
+ *
+ * @author <a href="mailto:Kevin.Conner at jboss.com">Kevin Conner</a>
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ * @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 Message {
+
+ private Object payload;
+ private Map<String, Object> attachments = new LinkedHashMap<String, Object>();
+
+ /**
+ * Get the primary payload Object.
+ * @return The primary payload Object.
+ */
+ public Object getPayload() {
+ return payload;
+ }
+
+ /**
+ * Set the primary payload Object.
+ * @param payload The primary payload Object.
+ */
+ public void setPayload(Object payload) {
+ this.payload = payload;
+ }
+
+ /**
+ * Get the message attachments.
+ * @return Message attachments.
+ */
+ public Map<String, Object> getAttachments() {
+ return attachments;
+ }
+
+ /**
+ * Set the message attachments.
+ * @param attachments Message attachments.
+ */
+ public void setAttachments(Map<String, Object> attachments) {
+ this.attachments = attachments;
+ }
}
Deleted: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/message/MessageContext.java
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/message/MessageContext.java 2008-07-16 09:16:43 UTC (rev 21052)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/message/MessageContext.java 2008-07-16 13:40:48 UTC (rev 21053)
@@ -1,10 +0,0 @@
-package org.jboss.esb.message;
-
-import java.util.Map;
-
-public interface MessageContext
-{
- public Object getContext(final String name) ;
- public void setContext(final String name, final Object value) ;
- public Map<String, Object> getContexts() ;
-}
Added: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/message/doc-files/4.x-to-5.x-devnotes.html
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/message/doc-files/4.x-to-5.x-devnotes.html (rev 0)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/message/doc-files/4.x-to-5.x-devnotes.html 2008-07-16 13:40:48 UTC (rev 21053)
@@ -0,0 +1,44 @@
+<html>
+ <head>
+ <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" TITLE="Style" />
+ </head>
+ <body>
+ <h2>Notes for JBossESB 4.x Developers Moving to JBossESB 5.x</h2>
+ This page contains notes for developers moving from JBossESB 4.x to JBossESB 5.x.
+
+ <h3 id="message">Message Changes</h3>
+ One of the big changes in the 5.x API is the <a href="../Message.html">Message</a>.
+ The message in JBossESB 5.x is a simple POJO, contrasting with the complex/confusing
+ structure defined in the 4.x API.
+ <p/>
+ The main points of difference are:
+ <table border="1" cellpadding="3" cellspacing="0" width="100%">
+ <tr class="TableHeadingColor"><th>4.x</th><th>5.x</th></tr>
+ <tr>
+ <td>Multiple named message payload locations in the message "Body".</td>
+ <td>Single "Primary" message payload located directly on the Message (unnamed).
+ If your message contains multiple Objects, then the primary payload
+ would be a Collection.
+ </td>
+ </tr>
+ <tr>
+ <td>Contextual info (e.g. Addressing/Call info) passed around with the Message.</td>
+ <td>Contextual info not available on the Message. This information can be
+ accessed via the classes defined in the <a href="../../context/package-summary.html">org.jboss.esb.context</a> package.
+ </td>
+ </tr>
+ <tr>
+ <td>Contextual information getting stored on the Message, causing "pollution" of
+ the Message.
+ </td>
+ <td>Proper "Context" objects are now available through the <a href="../../context/package-summary.html">org.jboss.esb.context</a>
+ package. No need to polute the Message.</td>
+ </tr>
+ <tr>
+ <td>Serialization parameters were defined on the Message.</td>
+ <td>Serialization is a completely orthogonal function.</td>
+ </tr>
+ </table>
+
+ </body>
+</html>
\ No newline at end of file
Added: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/message/package.html
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/message/package.html (rev 0)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/message/package.html 2008-07-16 13:40:48 UTC (rev 21053)
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ ESB Message.
+
+ <h2>Package Specification</h2>
+ </body>
+</html>
\ No newline at end of file
Added: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/package.html
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/package.html (rev 0)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/package.html 2008-07-16 13:40:48 UTC (rev 21053)
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ ESb Service.
+
+ <h2>Package Specification</h2>
+ </body>
+</html>
\ No newline at end of file
Copied: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/ServiceName.java (from rev 21042, labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/context/ServiceName.java)
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/ServiceName.java (rev 0)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/ServiceName.java 2008-07-16 13:40:48 UTC (rev 21053)
@@ -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.service;
+
+/**
+ * Service Name.
+ *
+ * @author <a href="mailto:Kevin.Conner at jboss.com">Kevin Conner</a>
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ * @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 ServiceName {
+
+ private final String category;
+ private final String name;
+
+ public ServiceName(final String category, final String name) {
+ this.category = category;
+ this.name = name;
+ }
+
+ public String getCategory() {
+ return category;
+ }
+
+ public String getName() {
+ return name;
+ }
+}
Property changes on: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/ServiceName.java
___________________________________________________________________
Name: svn:eol-style
+ native
Added: labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/package.html
===================================================================
--- labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/package.html (rev 0)
+++ labs/jbossesb/workspace/skeagh/service-api/src/main/java/org/jboss/esb/service/package.html 2008-07-16 13:40:48 UTC (rev 21053)
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ ESb Service.
+
+ <h2>Package Specification</h2>
+ </body>
+</html>
\ No newline at end of file
More information about the jboss-svn-commits
mailing list