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

Gavin King gavin.king at jboss.com
Fri Feb 9 10:12:47 EST 2007


  User: gavin   
  Date: 07/02/09 10:12:47

  Modified:    src/main/org/jboss/seam/core  Events.java
  Log:
  exception
  
  Revision  Changes    Path
  1.19      +6 -1      jboss-seam/src/main/org/jboss/seam/core/Events.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Events.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/Events.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -b -r1.18 -r1.19
  --- Events.java	4 Feb 2007 07:57:17 -0000	1.18
  +++ Events.java	9 Feb 2007 15:12:47 -0000	1.19
  @@ -84,7 +84,12 @@
      
      public void raiseTransactionSuccessEvent(String type, Object... parameters)
      {
  -      TransactionListener.instance().scheduleEvent(type, parameters);
  +      LocalTransactionListener transactionListener = TransactionListener.instance();
  +      if (transactionListener==null)
  +      {
  +         throw new IllegalStateException("org.jboss.seam.core.transactionListener is not installed");
  +      }
  +      transactionListener.scheduleEvent(type, parameters);
      }
      
      public void raiseTimedEvent(String type, long duration, Object... parameters)
  
  
  



More information about the jboss-cvs-commits mailing list