Adjusted test timing.

This commit is contained in:
Mark Fisher
2008-01-18 17:36:36 +00:00
parent 19dabafa89
commit eaeefd4eb1
2 changed files with 13 additions and 34 deletions

View File

@@ -19,9 +19,6 @@ package org.springframework.integration.endpoint;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.Lifecycle;
@@ -47,8 +44,6 @@ import org.springframework.util.Assert;
*/
public class DefaultMessageEndpoint implements MessageEndpoint, ChannelRegistryAware, InitializingBean, BeanNameAware {
private final Log logger = LogFactory.getLog(this.getClass());
private String name;
private MessageHandler handler;
@@ -172,6 +167,9 @@ public class DefaultMessageEndpoint implements MessageEndpoint, ChannelRegistryA
if (this.isRunning()) {
return;
}
if (!initialized) {
this.afterPropertiesSet();
}
if (this.handler instanceof Lifecycle) {
((Lifecycle) handler).start();
}