The CommandDispatcher in redis-component has a high cyclomatic complexity. It is relatively simple to extract all redis-command to its own class and put these classes in a HashMap. This means that a lot of classes will emerge (one for every entry in the Command-enum). But it also means that extension will be easier when we drop the Command-enum and let each redis-command have knowledge about which String should be used to identify a certain Command. Can anybody guess what the impact will be when we add a lot of small classes in component? Will this impact performance or footprint? Is this a price that we are willing to pay?
-- View this message in context: http://camel.465427.n5.nabble.com/Cyclomatic-complexity-of-camel-redis-tp5783270.html Sent from the Camel Development mailing list archive at Nabble.com.