[jboss-svn-commits] JBL Code SVN: r19643 - in labs/jbossesb/branches/JBESB_4_2_1_GA_FP1/product/rosetta: tests/src/org/jboss/soa/esb/notification and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sat Apr 19 12:09:18 EDT 2008


Author: tcunning
Date: 2008-04-19 12:09:17 -0400 (Sat, 19 Apr 2008)
New Revision: 19643

Modified:
   labs/jbossesb/branches/JBESB_4_2_1_GA_FP1/product/rosetta/src/org/jboss/internal/soa/esb/notification/PropertySubstituter.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_FP1/product/rosetta/tests/src/org/jboss/soa/esb/notification/PropertySubstituterUnitTest.java
Log:
JBESB-1589
Add license and comments.


Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_FP1/product/rosetta/src/org/jboss/internal/soa/esb/notification/PropertySubstituter.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_FP1/product/rosetta/src/org/jboss/internal/soa/esb/notification/PropertySubstituter.java	2008-04-19 13:14:41 UTC (rev 19642)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_FP1/product/rosetta/src/org/jboss/internal/soa/esb/notification/PropertySubstituter.java	2008-04-19 16:09:17 UTC (rev 19643)
@@ -1,3 +1,24 @@
+/*
+ * 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.internal.soa.esb.notification;
 
 import java.net.URI;
@@ -6,6 +27,14 @@
 import org.jboss.soa.esb.message.mapping.ObjectMapper;
 import org.jboss.soa.esb.message.mapping.ObjectMappingException;
 
+/**
+ * The property substituter applies two types of substitutions on a String - the first
+ * is that it substitutes a message property contained in {property} for its value, 
+ * the second being that it will use the ObjectMapper to substitute the value for a 
+ * location within the message (example : body.order) if it is a String or a URI.
+ * 
+ * @author <a href="mailto:tcunning at redhat.com">tcunning at redhat.com</a>
+ */
 public class PropertySubstituter {
 	public static String replaceArguments (String field, Message message) {
 		String current = field;

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_FP1/product/rosetta/tests/src/org/jboss/soa/esb/notification/PropertySubstituterUnitTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_FP1/product/rosetta/tests/src/org/jboss/soa/esb/notification/PropertySubstituterUnitTest.java	2008-04-19 13:14:41 UTC (rev 19642)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_FP1/product/rosetta/tests/src/org/jboss/soa/esb/notification/PropertySubstituterUnitTest.java	2008-04-19 16:09:17 UTC (rev 19643)
@@ -1,3 +1,24 @@
+/*
+ * 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.notification;
 
 import java.net.URI;
@@ -5,12 +26,16 @@
 import java.util.Hashtable;
 
 import junit.framework.TestCase;
+
+import org.jboss.internal.soa.esb.notification.PropertySubstituter;
 import org.jboss.soa.esb.message.Message;
 import org.jboss.soa.esb.message.format.MessageFactory;
 import org.jboss.soa.esb.message.format.MessageType;
 
-import org.jboss.internal.soa.esb.notification.PropertySubstituter;
-
+/**
+ * Property substituter unit tests.
+ * @author <a href="mailto:tcunning at redhat.com">tcunning at redhat.com</a>
+ */
 public class PropertySubstituterUnitTest extends TestCase {
 	private static final String FILE_NAME = "foo.txt";
 	private static final String NAME_TWO = "two.csv";




More information about the jboss-svn-commits mailing list