AbstractEndpoint is no longer TaskScheduler aware. The ListeningMailSource now provides its own taskExecutor property and uses a SimpleAsyncTaskExecutor by default.

This commit is contained in:
Mark Fisher
2008-10-10 00:28:40 +00:00
parent cfcbad200a
commit 01c9efef66
4 changed files with 25 additions and 35 deletions

View File

@@ -20,35 +20,23 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.integration.scheduling.TaskScheduler;
import org.springframework.integration.scheduling.TaskSchedulerAware;
/**
* The base class for Message Endpoint implementations.
*
* @author Mark Fisher
*/
public abstract class AbstractEndpoint implements MessageEndpoint, TaskSchedulerAware, BeanNameAware {
public abstract class AbstractEndpoint implements MessageEndpoint, BeanNameAware {
protected final Log logger = LogFactory.getLog(this.getClass());
private volatile String name;
private volatile TaskScheduler taskScheduler;
public void setBeanName(String name) {
this.name = name;
}
protected TaskScheduler getTaskScheduler() {
return this.taskScheduler;
}
public void setTaskScheduler(TaskScheduler taskScheduler) {
this.taskScheduler = taskScheduler;
}
public String toString() {
return (this.name != null) ? this.name : super.toString();
}