Difference between revisions of "Apache DeltaSpike"
Jump to navigation
Jump to search
(Created page with "https://deltaspike.apache.org/ DeltaSpike consists of a number of portable CDI extensions that provide useful features for JavaEE and Java application developers. Example w...") |
|||
Line 5: | Line 5: | ||
Example with Quartz v2 |
Example with Quartz v2 |
||
− | < |
+ | <source lang="java"> |
@Scheduled(cronExpression = "0 0/10 * * * ?") |
@Scheduled(cronExpression = "0 0/10 * * * ?") |
||
public class CdiAwareQuartzJob implements org.quartz.Job |
public class CdiAwareQuartzJob implements org.quartz.Job |
||
Line 18: | Line 18: | ||
} |
} |
||
} |
} |
||
− | </ |
+ | </source> |
Revision as of 10:54, 3 August 2016
https://deltaspike.apache.org/
DeltaSpike consists of a number of portable CDI extensions that provide useful features for JavaEE and Java application developers.
Example with Quartz v2
@Scheduled(cronExpression = "0 0/10 * * * ?")
public class CdiAwareQuartzJob implements org.quartz.Job
{
@Inject
private MyService service;
@Override
public void execute(JobExecutionContext context) throws JobExecutionException
{
//...
}
}