|
Suggestions on the proposed patch:
public static final String DELIMITER = ':';
+1 for Craig's suggestion
Craig, what do you think about my earlier suggestion of using a new class to It seems like a Catalog/CommandUtils class might be appropriate here. I'm not completely against it, but I think we should try to find a way to I'm becoming a little allergic to "FooUtils" class names
really speak to the purpose. I'd be marginally in favor of CommandFactory or CommandLookup instead, but don't know if it's worth building a new class for this single method, and/or whether we think other methods might get added later. I could live with this method on CatalogFactory, though, as well. I particularly don't think this belongs in "Utils" because I think the basic
concept should be integral to usage of Chain. I'm afraid that a "Utils" class makes it seem second-class. I'm fine with all of Craig's suggestions, and will upload a revised patch I would prefer keeping it in CatalogFactory over creating new factories for
command. If we eventually need a CommandFactory for some other reason, then maybe we could move the method to it. Created an attachment (id=13866)
Updated patch with suggested changes. This patch implements the changes Craig suggested, and uses commons-logging to Fixed in nightly build 20041231.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Patch to CatalogFactory, CatalogFactoryBaseTestCase implementing single-ID
command lookup.
Just something to get the discussion rolling.