Accessing Dynamic Router Capabilities from XML Configured Routers
Hey guys,
I'm looking for a way to access the dynamic router capabilities of the built-in routers programmatically. I know that classes such as HeaderValueRouter expose setChannelMapping() and removeChannelMapping(), but I have not been able to find a clean way to obtain a reference to an instance of this class from a header-value-router bean.
I know that I can extend EventDrivenConsumer and initialize it with my own instance of a HeaderValueRouter (or derived type), but this feels a little too tightly bound to framework.
My use case is that I want to configure a router statically, but then modify it at run time.