<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<span id="forumTopicsPlugin:forumTopicsPluginContainer">
<div id="forumTopicsPlugin:topicForm:topicPreview">
<div class="textPreview" id="j_id731">
<p class="wikiPara">Hi All,</p>
<p class="wikiPara">Having trouble deciding on something. Originally
observer methods for scheduled events were quite readable and
intuitive, eg:</p>
<pre class="wikiPreformatted">public void doStuff(@Observes @Scheduled("10:00") Event e) { ... }</pre>
<p class="wikiPara">However, due to possible confusion between
org.jboss.seam.cron.events.Event and javax.enterprise.event.Event Event
was renamed to CronEvent. This is fine, but I wonder if there's any
better options. Viable options I've thought of so far include:</p>
<pre class="wikiPreformatted">@Observes @Scheduled("10:00") CronEvent ce
@Observes @Scheduled("10:00") Instant i
@Observes @Scheduled("10:00") Moment m
@Observes @Scheduled("10:00") Tick t
@Observes @Scheduled("10:00") Occurrence o
@Observes @Scheduled("10:00") Appointment a</pre>
<p class="wikiPara">Or maybe go for something different like:</p>
<pre class="wikiPreformatted">@Observes @At("10:00") Schedule s
@Observes @Recurring("10:00") Schedule s</pre>
<p class="wikiPara">I figured since this is going to be the most used
part of the API I would throw it out there for discussion and to see if
there are any better ideas out there.</p>
<p class="wikiPara">It's probably worth mentioining that another part
of the API looks like this:</p>
<pre class="wikiPreformatted">@Observes @Every Second s
@Observes @Every Minute m
@Observes @Every Hour h
</pre>
<p>Thanks for the feedback.<br>
</p>
<p>Pete R<br>
</p>
</div>
</div>
</span>
</body>
</html>