Author: shane.bryzak(a)jboss.com
Date: 2008-02-12 23:21:03 -0500 (Tue, 12 Feb 2008)
New Revision: 7418
Modified:
trunk/src/main/org/jboss/seam/Component.java
Log:
JBSEAM-1416
Modified: trunk/src/main/org/jboss/seam/Component.java
===================================================================
--- trunk/src/main/org/jboss/seam/Component.java 2008-02-13 02:55:42 UTC (rev 7417)
+++ trunk/src/main/org/jboss/seam/Component.java 2008-02-13 04:21:03 UTC (rev 7418)
@@ -305,14 +305,22 @@
private void initSynchronize()
{
+ boolean hasAnnotation = getBeanClass().isAnnotationPresent(Synchronized.class);
+
synchronize = ( scope==SESSION /*&& !
beanClass.isAnnotationPresent(ReadOnly.class)*/ ) ||
- getBeanClass().isAnnotationPresent(Synchronized.class);
+ hasAnnotation;
+
if (synchronize)
{
timeout = getBeanClass().isAnnotationPresent(Synchronized.class) ?
getBeanClass().getAnnotation(Synchronized.class).timeout() :
Synchronized.DEFAULT_TIMEOUT;
}
+
+ if (hasAnnotation && !interceptionEnabled)
+ {
+ log.warn("Interceptors are disabled for @Synchronized component -
synchronization will be disabled for: " + name);
+ }
}
private void registerConverterOrValidator(Context applicationContext)
Show replies by date