Removed unnecessary initialize() call from registerEndpoint.

This commit is contained in:
Mark Fisher
2008-08-18 21:10:58 +00:00
parent 58c768541a
commit b6ef9c8e1a

View File

@@ -238,11 +238,8 @@ public class DefaultMessageBus implements MessageBus, ApplicationContextAware, A
}
public void registerEndpoint(MessageEndpoint endpoint) {
if (!this.initialized) {
this.initialize();
}
if (endpoint instanceof ChannelRegistryAware) {
((ChannelRegistryAware) endpoint).setChannelRegistry(this.channelRegistry);
((ChannelRegistryAware) endpoint).setChannelRegistry(this);
}
this.endpointRegistry.registerEndpoint(endpoint);
if (this.isRunning()) {