DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=32940>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32940 ------- Additional Comments From [EMAIL PROTECTED] 2005-01-04 22:47 ------- (In reply to comment #1) > Sounds interesting. Can you provide a few more details on how this would > work? you'd have a command something like this: public class MyCommand extends DispatchCommand { public boolean create(Context ctx) { // do some creating return false; } public boolean update(Context ctx) { // do some updating return false; } public boolean delete(Context ctx) { // do some deleting return false; } } You wouldn't implement "execute(Context)" because the base class has an implementation of that method which does the lookup and invocation. And then in your config, you could have <catalog> <command name="create" className="MyCommand" method="create" /> <command name="update" className="MyCommand" method="update" /> <chain name="delete"> <command className="MyCommand" method="delete" /> <command className="SomeOtherCommand" /> </chain> </catalog> > Also, you mentioned it would be an "abstract base" command. I'm not > sure whether you meant that it would go in the "impl" package or not, but I'd > recommend it would go in the "generic" package instead. Good, because I put it in "generic" so far :^) "Abstract" just because it would do nothing unless you extended it, although whether or not an "abstract" modifier was actually applied to the class declaration isn't so important since there wouldn't be any abstract methods. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
