fusesource/hawtdispatch — pull request #22 by trasa (2014-10-01 18:11:18+00:00)
Title: Add shutdown() to Dispatcher interface

I wire up Dispatcher through Spring Configuration annotations, and want to
give Dispatcher a chance to shutdown gracefully when Spring is shutting
down. Since shutdown() isn't part of the Dispatcher interface, I get
warnings about a method that doesn't exist.

This adds shutdown() to the interface to fix that warning.

The usage of this in my Spring Configuration is:

@Bean(destroyMethod="shutdown")
public Dispatcher hawtDispatcher() {
return DispatcherConfig.getDefaultDispatcher();
}