Apache DeltaSpike

From air
Jump to: navigation, search

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
    {
        //...
    }
}