Maybe a bit of a tangent, but have you thought of using JSR 310?<br><br><div class="gmail_quote">On Thu, May 12, 2011 at 18:53, Pete Royle <span dir="ltr"><<a href="mailto:howardmoon@screamingcoder.com">howardmoon@screamingcoder.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Shane mentioned Task and Action, of which we both prefer Action.<br>
<br>
I also just thought of Trigger and Notification.<br>
<br>
Pete R<br>
<div><div></div><div class="h5"><br>
<br>
George Gastaldi wrote:<br>
> I suggest adding a java.util.concurrent.TimeUnit attribute to @Every<br>
> annotation and stick to CronEvent naming standard.<br>
><br>
> 2011/5/12 Pete Royle <<a href="mailto:howardmoon@screamingcoder.com">howardmoon@screamingcoder.com</a>>:<br>
><br>
>> Hi All,<br>
>><br>
>> Having trouble deciding on something. Originally observer methods for<br>
>> scheduled events were quite readable and intuitive, eg:<br>
>><br>
>> public void doStuff(@Observes @Scheduled("10:00") Event e) { ... }<br>
>><br>
>> However, due to possible confusion between org.jboss.seam.cron.events.Event<br>
>> and javax.enterprise.event.Event Event was renamed to CronEvent. This is<br>
>> fine, but I wonder if there's any better options. Viable options I've<br>
>> thought of so far include:<br>
>><br>
>> @Observes @Scheduled("10:00") CronEvent ce<br>
>> @Observes @Scheduled("10:00") Instant i<br>
>> @Observes @Scheduled("10:00") Moment m<br>
>> @Observes @Scheduled("10:00") Tick t<br>
>> @Observes @Scheduled("10:00") Occurrence o<br>
>> @Observes @Scheduled("10:00") Appointment a<br>
>><br>
>> Or maybe go for something different like:<br>
>><br>
>> @Observes @At("10:00") Schedule s<br>
>> @Observes @Recurring("10:00") Schedule s<br>
>><br>
>> I figured since this is going to be the most used part of the API I would<br>
>> throw it out there for discussion and to see if there are any better ideas<br>
>> out there.<br>
>><br>
>> It's probably worth mentioining that another part of the API looks like<br>
>> this:<br>
>><br>
>> @Observes @Every Second s<br>
>> @Observes @Every Minute m<br>
>> @Observes @Every Hour h<br>
>><br>
>> Thanks for the feedback.<br>
>><br>
>> Pete R<br>
>><br>
>> _______________________________________________<br>
>> seam-dev mailing list<br>
>> <a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br>
>> <a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>
>><br>
>><br>
>><br>
_______________________________________________<br>
seam-dev mailing list<br>
<a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Jason Porter<br><a href="http://lightguard-jp.blogspot.com" target="_blank">http://lightguard-jp.blogspot.com</a><br><a href="http://twitter.com/lightguardjp" target="_blank">http://twitter.com/lightguardjp</a><br>
<br>Software Engineer<br>Open Source Advocate<br>Author of Seam Catch - Next Generation Java Exception Handling<br><br>PGP key id: 926CCFF5<br>PGP key available at: <a href="http://keyserver.net" target="_blank">keyserver.net</a>, <a href="http://pgp.mit.edu" target="_blank">pgp.mit.edu</a><br>