[seam-commits] Seam SVN: r9241 - trunk/src/main/org/jboss/seam/core.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Oct 8 21:16:54 EDT 2008


Author: shane.bryzak at jboss.com
Date: 2008-10-08 21:16:54 -0400 (Wed, 08 Oct 2008)
New Revision: 9241

Added:
   trunk/src/main/org/jboss/seam/core/LockTimeoutException.java
Modified:
   trunk/src/main/org/jboss/seam/core/SynchronizationInterceptor.java
Log:
JBSEAM-3531

Added: trunk/src/main/org/jboss/seam/core/LockTimeoutException.java
===================================================================
--- trunk/src/main/org/jboss/seam/core/LockTimeoutException.java	                        (rev 0)
+++ trunk/src/main/org/jboss/seam/core/LockTimeoutException.java	2008-10-09 01:16:54 UTC (rev 9241)
@@ -0,0 +1,24 @@
+package org.jboss.seam.core;
+
+/**
+ * Thrown by the SynchronizationInterceptor when it fails to get a lock within the allocated time.
+ *  
+ * @author Shane Bryzak
+ */
+public class LockTimeoutException extends Exception
+{
+   public LockTimeoutException()
+   {
+      super();   
+   }
+   
+   public LockTimeoutException(String message)
+   {
+      super(message);
+   }
+   
+   public LockTimeoutException(String message, Throwable cause)
+   {
+      super(message, cause);
+   }
+}

Modified: trunk/src/main/org/jboss/seam/core/SynchronizationInterceptor.java
===================================================================
--- trunk/src/main/org/jboss/seam/core/SynchronizationInterceptor.java	2008-10-08 23:41:15 UTC (rev 9240)
+++ trunk/src/main/org/jboss/seam/core/SynchronizationInterceptor.java	2008-10-09 01:16:54 UTC (rev 9241)
@@ -38,7 +38,8 @@
       }
       else
       {
-         throw new IllegalStateException("could not acquire lock on @Synchronized component: " + getComponent().getName());
+         throw new LockTimeoutException("could not acquire lock on @Synchronized component: " + 
+               getComponent().getName());
       }
    }
    




More information about the seam-commits mailing list