You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Gerhard Petracek (JIRA)" <ji...@apache.org> on 2015/12/30 16:48:49 UTC
[jira] [Created] (DELTASPIKE-1054) optional mode to switch from
org.quartz.Job to java.lang.Runnable
Gerhard Petracek created DELTASPIKE-1054:
--------------------------------------------
Summary: optional mode to switch from org.quartz.Job to java.lang.Runnable
Key: DELTASPIKE-1054
URL: https://issues.apache.org/jira/browse/DELTASPIKE-1054
Project: DeltaSpike
Issue Type: New Feature
Components: Scheduler
Affects Versions: 1.5.2
Reporter: Gerhard Petracek
Assignee: Gerhard Petracek
Fix For: 1.5.3
with that it's possible to use
{code}
@Scheduled(/*...*/)
public class MyJob implements Runnable {
@Inject
private MyService myService;
@Override
public void run() {
//..
}
}
{code}
instead of
{code}
@Scheduled(/*...*/)
public class ConfigReloaderJob implements org.quartz.Job {
@Inject
private MyService myService;
@Override
public void execute(JobExecutionContext context) throws JobExecutionException {
//...
}
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)