incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From timothyjw...@apache.org
Subject svn commit: r1021330 - in /incubator/aries/trunk/transaction/transaction-blueprint/src: main/java/org/apache/aries/transaction/BundleWideTxData.java test/resources/org/apache/aries/transaction/mixed-aries.xml
Date Mon, 11 Oct 2010 12:56:01 GMT
Author: timothyjward
Date: Mon Oct 11 12:56:01 2010
New Revision: 1021330

URL: http://svn.apache.org/viewvc?rev=1021330&view=rev
Log:
ARIES-447 - Support defaulting of transaction strategy to Required for Bundle wide transactions

Modified:
    incubator/aries/trunk/transaction/transaction-blueprint/src/main/java/org/apache/aries/transaction/BundleWideTxData.java
    incubator/aries/trunk/transaction/transaction-blueprint/src/test/resources/org/apache/aries/transaction/mixed-aries.xml

Modified: incubator/aries/trunk/transaction/transaction-blueprint/src/main/java/org/apache/aries/transaction/BundleWideTxData.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/transaction/transaction-blueprint/src/main/java/org/apache/aries/transaction/BundleWideTxData.java?rev=1021330&r1=1021329&r2=1021330&view=diff
==============================================================================
--- incubator/aries/trunk/transaction/transaction-blueprint/src/main/java/org/apache/aries/transaction/BundleWideTxData.java
(original)
+++ incubator/aries/trunk/transaction/transaction-blueprint/src/main/java/org/apache/aries/transaction/BundleWideTxData.java
Mon Oct 11 12:56:01 2010
@@ -30,7 +30,10 @@ public final class BundleWideTxData
   
   public BundleWideTxData(String value,
           String method, String bean) {
-      this.value = value;
+      if(value == null || value.isEmpty())
+        this.value = "Required";
+      else
+        this.value = value;
       setupPatterns(method, bean);  
   }
  

Modified: incubator/aries/trunk/transaction/transaction-blueprint/src/test/resources/org/apache/aries/transaction/mixed-aries.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/transaction/transaction-blueprint/src/test/resources/org/apache/aries/transaction/mixed-aries.xml?rev=1021330&r1=1021329&r2=1021330&view=diff
==============================================================================
--- incubator/aries/trunk/transaction/transaction-blueprint/src/test/resources/org/apache/aries/transaction/mixed-aries.xml
(original)
+++ incubator/aries/trunk/transaction/transaction-blueprint/src/test/resources/org/apache/aries/transaction/mixed-aries.xml
Mon Oct 11 12:56:01 2010
@@ -20,7 +20,7 @@
 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
 	xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.1.0">
 
-	<tx:transaction value="Required" />
+	<tx:transaction/>
 
 	<tx:transaction method="get*" value="Supports" />
 



Mime
View raw message