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

Gavin King gavin.king at jboss.com
Sun Jun 24 15:40:32 EDT 2007


  User: gavin   
  Date: 07/06/24 15:40:32

  Modified:    src/main/org/jboss/seam/async      Asynchronous.java
                        AsynchronousEvent.java AsynchronousInvocation.java
                        TransactionCompletionEvent.java
                        TransactionSuccessEvent.java
  Log:
  fix synchronizations for resource-local txns
  more logging
  
  Revision  Changes    Path
  1.4       +9 -1      jboss-seam/src/main/org/jboss/seam/async/Asynchronous.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Asynchronous.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/async/Asynchronous.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- Asynchronous.java	24 Jun 2007 06:34:30 -0000	1.3
  +++ Asynchronous.java	24 Jun 2007 19:40:32 -0000	1.4
  @@ -6,6 +6,8 @@
   import org.jboss.seam.contexts.Contexts;
   import org.jboss.seam.contexts.Lifecycle;
   import org.jboss.seam.core.Init;
  +import org.jboss.seam.log.LogProvider;
  +import org.jboss.seam.log.Logging;
   
   /**
    * Something that happens asynchronously, and with a full
  @@ -17,6 +19,7 @@
    */
   public abstract class Asynchronous implements Serializable
   {
  +   private static final LogProvider log = Logging.getLogProvider(Asynchronous.class);
      static final long serialVersionUID = -551286304424595765L;
      
      private Long processId;
  @@ -65,6 +68,11 @@
            Contexts.getEventContext().set("timer", timer);
         }
       
  +      if ( log.isDebugEnabled() )
  +      {
  +         log.debug("executing: " + this);
  +      }
  +    
         call();
      }
      
  
  
  
  1.3       +11 -0     jboss-seam/src/main/org/jboss/seam/async/AsynchronousEvent.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AsynchronousEvent.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/async/AsynchronousEvent.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- AsynchronousEvent.java	22 Jun 2007 09:18:40 -0000	1.2
  +++ AsynchronousEvent.java	24 Jun 2007 19:40:32 -0000	1.3
  @@ -27,4 +27,15 @@
         Events.instance().raiseEvent(type, parameters);
      }
      
  +   @Override
  +   public String toString()
  +   {
  +      return "AsynchronousEvent(" + type + ')';
  +   }
  +   
  +   protected String getType()
  +   {
  +      return type;
  +   }
  +   
   }
  \ No newline at end of file
  
  
  
  1.3       +6 -0      jboss-seam/src/main/org/jboss/seam/async/AsynchronousInvocation.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AsynchronousInvocation.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/async/AsynchronousInvocation.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- AsynchronousInvocation.java	22 Jun 2007 09:18:40 -0000	1.2
  +++ AsynchronousInvocation.java	24 Jun 2007 19:40:32 -0000	1.3
  @@ -51,4 +51,10 @@
         
         Reflections.invokeAndWrap(method, target, args);
      }
  +   
  +   @Override
  +   public String toString()
  +   {
  +      return "AsynchronousInvocation(" + componentName + '.' + methodName + "())";
  +   }
   }
  \ No newline at end of file
  
  
  
  1.2       +6 -0      jboss-seam/src/main/org/jboss/seam/async/TransactionCompletionEvent.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TransactionCompletionEvent.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/async/TransactionCompletionEvent.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- TransactionCompletionEvent.java	24 Jun 2007 06:34:30 -0000	1.1
  +++ TransactionCompletionEvent.java	24 Jun 2007 19:40:32 -0000	1.2
  @@ -22,4 +22,10 @@
      
      public void beforeCompletion() {}
      
  +   @Override
  +   public String toString()
  +   {
  +      return "TransactionCompletionEvent(" + getType() + ')';
  +   }
  +   
   }
  
  
  
  1.2       +6 -0      jboss-seam/src/main/org/jboss/seam/async/TransactionSuccessEvent.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TransactionSuccessEvent.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/async/TransactionSuccessEvent.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- TransactionSuccessEvent.java	24 Jun 2007 06:34:30 -0000	1.1
  +++ TransactionSuccessEvent.java	24 Jun 2007 19:40:32 -0000	1.2
  @@ -27,4 +27,10 @@
      
      public void beforeCompletion() {}
      
  +   @Override
  +   public String toString()
  +   {
  +      return "TransactionSuccessEvent(" + getType() + ')';
  +   }
  +   
   }
  
  
  



More information about the jboss-cvs-commits mailing list