Add base work for cdplayer sample

This commit is contained in:
Janne Valkealahti
2015-03-15 19:39:43 +00:00
parent 1396856bcf
commit 74af052b72
15 changed files with 656 additions and 0 deletions

View File

@@ -13,6 +13,8 @@ import org.springframework.context.annotation.Import;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.task.SyncTaskExecutor;
import org.springframework.core.task.TaskExecutor;
import org.springframework.scheduling.TaskScheduler;
import org.springframework.scheduling.concurrent.ConcurrentTaskScheduler;
import org.springframework.statemachine.event.OnStateChangedEvent;
import org.springframework.statemachine.event.OnTransitionEvent;
import org.springframework.statemachine.event.StateMachineEvent;
@@ -32,6 +34,11 @@ public class CommonConfiguration {
return new SyncTaskExecutor();
}
@Bean
public TaskScheduler taskScheduler() {
return new ConcurrentTaskScheduler();
}
@Bean
public TestEventListener testEventListener() {
return new TestEventListener();