|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Qualifier
@Retention(value=RUNTIME)
@Target(value={PARAMETER,METHOD,FIELD,TYPE})
public @interface Scheduled
A binding annotation for use observing the Event.class event.
The value can either be a schedule in Cron format, or a 'named schedule', whereby the cron-formatted schedule appears in the /cron.properties file on the classpath as the value of the property with the given name.
Example scheduled event observer:
public void doSomething(@Observes @Scheduled("0 * * ? * *") Trigger t) { ... }
Example named, scheduled event observer:
public void doSomething(@Observes @Scheduled("after.hours") Trigger t) { ... }
Where the 'after.hours' schedule would be specified in /cron.properties like so:
Scheduled bindings may be made typesafe using the following pattern:
after.hours=0 0 * ? * *
Required Element Summary
Stringvalue
The schedule specification (in cron format) or name.
Element Detail
value
public abstract String value
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: REQUIRED | OPTIONAL
DETAIL: ELEMENT
Copyright © 2011 Seam Framework. All Rights Reserved.