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

Michael Yuan michael.yuan at jboss.com
Tue Jun 19 01:33:32 EDT 2007


  User: myuan   
  Date: 07/06/19 01:33:32

  Added:       src/main/org/jboss/seam/annotations/timer    
                        FinalExpiration.java IntervalBusinessDay.java
                        IntervalCron.java
  Removed:     src/main/org/jboss/seam/annotations/timer     Cron.java
  Log:
  Add support for FinalExpiration on Quartz dispatcher
  
  Revision  Changes    Path
  1.1      date: 2007/06/19 05:33:32;  author: myuan;  state: Exp;jboss-seam/src/main/org/jboss/seam/annotations/timer/FinalExpiration.java
  
  Index: FinalExpiration.java
  ===================================================================
  package org.jboss.seam.annotations.timer;
  
  import static java.lang.annotation.ElementType.PARAMETER;
  import static java.lang.annotation.RetentionPolicy.RUNTIME;
  
  import java.lang.annotation.Documented;
  import java.lang.annotation.Retention;
  import java.lang.annotation.Target;
  
  /**
   * The stop date of the repeating asynchronous call.
   * 
   * This a parameter level annotation and it is only
   * available for the Quartz timer.
   * 
   * @author Michael Yuan
   *
   */
  @Target(PARAMETER)
  @Retention(RUNTIME)
  @Documented
  public @interface FinalExpiration
  {
  }
  
  
  
  1.1      date: 2007/06/19 05:33:32;  author: myuan;  state: Exp;jboss-seam/src/main/org/jboss/seam/annotations/timer/IntervalBusinessDay.java
  
  Index: IntervalBusinessDay.java
  ===================================================================
  package org.jboss.seam.annotations.timer;
  
  import static java.lang.annotation.ElementType.PARAMETER;
  import static java.lang.annotation.RetentionPolicy.RUNTIME;
  
  import java.lang.annotation.Documented;
  import java.lang.annotation.Retention;
  import java.lang.annotation.Target;
  
  /**
   * This annotation occurs on a parameter of type NthBusinessDay
   * of a method marked @Asynchronous. It schedules the asynchronous
   * call to be repeated on the Nth business day based on a calendar
   * specified in NthBusinessDay. It is only available in the Quartz dispatcher.
   * 
   * @author Michael Yuan
   *
   */
  @Target(PARAMETER)
  @Retention(RUNTIME)
  @Documented
  public @interface IntervalBusinessDay {}
  
  
  
  1.1      date: 2007/06/19 05:33:32;  author: myuan;  state: Exp;jboss-seam/src/main/org/jboss/seam/annotations/timer/IntervalCron.java
  
  Index: IntervalCron.java
  ===================================================================
  package org.jboss.seam.annotations.timer;
  
  import static java.lang.annotation.ElementType.PARAMETER;
  import static java.lang.annotation.RetentionPolicy.RUNTIME;
  
  import java.lang.annotation.Documented;
  import java.lang.annotation.Retention;
  import java.lang.annotation.Target;
  
  /**
   * The unix cron expression to specify the frequency 
   * and other conditions for the repeating asynchronous call
   * to be invoked (after the initial delay specified in Expiration
   * or Duration parameters). If this parameter is set, the 
   * IntervalDuration parameter will have no effect.
   * 
   * This annotation occurs on a parameter of type String
   * of a method marked @Asynchronous.
   * 
   * @author Michael Yuan
   *
   */
  @Target(PARAMETER)
  @Retention(RUNTIME)
  @Documented
  public @interface IntervalCron {}
  
  
  



More information about the jboss-cvs-commits mailing list