[
https://issues.apache.org/jira/browse/DELTASPIKE-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gerhard Petracek updated DELTASPIKE-1054:
-----------------------------------------
Description:
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 MyJob implements org.quartz.Job {
@Inject
private MyService myService;
@Override
public void execute(JobExecutionContext context) throws
JobExecutionException {
//...
}
}
{code}
was:
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}
> 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 MyJob 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)