1 package org
.argeo
.security
.core
;
3 import org
.argeo
.security
.SystemExecutionService
;
4 import org
.springframework
.core
.task
.SimpleAsyncTaskExecutor
;
7 * Asynchronous Spring TaskExecutor (for use in JMS for example) wrapping a
8 * {@link SystemExecutionService}.
10 public class AsyncSystemTaskExecutor
extends SimpleAsyncTaskExecutor
{
11 private static final long serialVersionUID
= -8035527542087963068L;
13 private SystemExecutionService systemExecutionService
;
15 public AsyncSystemTaskExecutor() {
19 public AsyncSystemTaskExecutor(String threadNamePrefix
) {
20 super(threadNamePrefix
);
24 public Thread
createThread(final Runnable runnable
) {
25 Runnable systemExecutionRunnable
= new Runnable() {
28 systemExecutionService
.execute(runnable
);
32 return super.createThread(systemExecutionRunnable
);
35 public void setSystemExecutionService(
36 SystemExecutionService systemExecutionService
) {
37 this.systemExecutionService
= systemExecutionService
;