[
http://jira.jboss.com/jira/browse/JBSEAM-1450?page=comments#action_12365917 ]
Michael Yuan commented on JBSEAM-1450:
--------------------------------------
I have a better idea: Instead of using multiple annotations just for the "Nth
business day" scenario (e.g., the @Interval, @BusinessDay, @Holidays), we should just
use one annotation and a data structure to specify Nth business day-related config:
@Asynchronous
public void myMethod(@Expiration Date when, @IntervalBusinessDay NthBusinessDay myDays
...) { ... }
public class NthBusinessDay () {
// The nth day
int n;
// Fire time on that day HH:MM:SS
String fireTime;
BusinessDayIntervalType interval;
boolean excludeWeekends;
boolean excludeUSHolidays;
boolbean excludeEUHolidays;
List <Date> additionalHolidays;
public enum BusinessDayIntervalType { WEEKLEY, MONTHLY, YEARLY }
}
This way, the @IntervalDuration, @IntervalCron, and @IntervalBusinessDay annotations can
be used in the same way. What do you think?
Pass Quartz Trigger and end time in @Asynchronous methods
---------------------------------------------------------
Key: JBSEAM-1450
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1450
Project: JBoss Seam
Issue Type: Task
Components: Core
Reporter: Michael Yuan
Assigned To: Michael Yuan
Fix For: 1.3.0.BETA1
We should write a QuartzTriggerSchedule class to wrap a Quartz Trigger. It would allow
the user to build their own triggers and then use @Trigger trigger to pass to a async
method. We can provide that in addition to the current support for fixed interval and cron
jobs.
Also, we should support a @End parameter to specify the end date of the repeating task.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira