[jboss-cvs] jboss-seam/src/main/org/jboss/seam ...

Gavin King gavin.king at jboss.com
Wed Nov 15 16:55:00 EST 2006


  User: gavin   
  Date: 06/11/15 16:55:00

  Modified:    src/main/org/jboss/seam  Component.java
  Log:
  imports
  
  Revision  Changes    Path
  1.209     +5 -4      jboss-seam/src/main/org/jboss/seam/Component.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Component.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/Component.java,v
  retrieving revision 1.208
  retrieving revision 1.209
  diff -u -b -r1.208 -r1.209
  --- Component.java	13 Nov 2006 20:20:21 -0000	1.208
  +++ Component.java	15 Nov 2006 21:55:00 -0000	1.209
  @@ -17,6 +17,7 @@
   import static org.jboss.seam.ScopeType.SESSION;
   import static org.jboss.seam.ScopeType.STATELESS;
   import static org.jboss.seam.ScopeType.UNSPECIFIED;
  +import static org.jboss.seam.util.EJB.INTERCEPTORS;
   import static org.jboss.seam.util.EJB.LOCAL;
   import static org.jboss.seam.util.EJB.POST_ACTIVATE;
   import static org.jboss.seam.util.EJB.POST_CONSTRUCT;
  @@ -24,7 +25,6 @@
   import static org.jboss.seam.util.EJB.PRE_PASSIVATE;
   import static org.jboss.seam.util.EJB.REMOTE;
   import static org.jboss.seam.util.EJB.REMOVE;
  -import static org.jboss.seam.util.EJB.INTERCEPTORS;
   import static org.jboss.seam.util.EJB.value;
   
   import java.io.Serializable;
  @@ -69,12 +69,12 @@
   import org.jboss.seam.annotations.RequestParameter;
   import org.jboss.seam.annotations.Rollback;
   import org.jboss.seam.annotations.Scope;
  -import org.jboss.seam.annotations.security.Secure;
   import org.jboss.seam.annotations.Startup;
   import org.jboss.seam.annotations.Synchronized;
   import org.jboss.seam.annotations.Transactional;
   import org.jboss.seam.annotations.Unwrap;
   import org.jboss.seam.annotations.datamodel.DataModel;
  +import org.jboss.seam.annotations.security.Secure;
   import org.jboss.seam.contexts.Context;
   import org.jboss.seam.contexts.Contexts;
   import org.jboss.seam.core.Events;
  @@ -120,7 +120,7 @@
    *
    * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
    * @author Gavin King
  - * @version $Revision: 1.208 $
  + * @version $Revision: 1.209 $
    */
   @Scope(ScopeType.APPLICATION)
   @SuppressWarnings("deprecation")
  @@ -226,7 +226,8 @@
            dependencies = getBeanClass().getAnnotation(Startup.class).depends();
         }
   
  -      synchronize = scope==SESSION || beanClass.isAnnotationPresent(Synchronized.class);
  +      synchronize = ( scope==SESSION /*&& ! beanClass.isAnnotationPresent(ReadOnly.class)*/ ) || 
  +            beanClass.isAnnotationPresent(Synchronized.class);
         if (synchronize)
         {
            if (scope==STATELESS)
  
  
  



More information about the jboss-cvs-commits mailing list