First cut at refactoring TaskScheduler: adding SPI interface and ScheduledExecutorService-based implementation.

This commit is contained in:
Marius Bogoevici
2008-08-01 23:33:04 +00:00
parent 98633cec5d
commit 4b42ea9de4
8 changed files with 389 additions and 47 deletions

View File

@@ -42,7 +42,7 @@ import org.springframework.integration.channel.QueueChannel;
import org.springframework.integration.channel.config.ChannelParserTests;
import org.springframework.integration.dispatcher.DirectChannel;
import org.springframework.integration.handler.TestHandlers;
import org.springframework.integration.scheduling.SimpleTaskScheduler;
import org.springframework.integration.scheduling.spi.ProviderTaskScheduler;
/**
* @author Mark Fisher
@@ -177,7 +177,7 @@ public class MessageBusParserTests {
context.getBean(AbstractApplicationContext.APPLICATION_EVENT_MULTICASTER_BEAN_NAME);
DirectFieldAccessor accessor = new DirectFieldAccessor(multicaster);
Object taskExecutor = accessor.getPropertyValue("taskExecutor");
assertEquals(SimpleTaskScheduler.class, taskExecutor.getClass());
assertEquals(ProviderTaskScheduler.class, taskExecutor.getClass());
}
@Test