Wed Jun 29 20:08:00 GMT 2005
Okay, this is the first implementation of a CommandSet.
All the CommandSets will end up following this pattern. Each command in
the command set will be implemented with a method named
execute<Command>. In this case the value command is implemented by
executeValue. A switch on the command will then be used to find the
appropriate method. The reason I'm still using a switch in this class
even though there's only a single command to choose from is consistency
with the rest of the CommandSets.
One additional thing I was wondering about is the comments for classes
implementing an interface. There's nothing specific about any of the
runCommands that should require a specific javadoc and running javadoc
will pick up the command of the interface defining the method if there
isn't a comment where it's implemented. However that will mean there
won't be any comments when one's looking at the actual code.
For the moment I'm just leaving the comment out.
2005-06-29 Aaron Luchko <email@example.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3712 bytes
Desc: not available
More information about the Java-patches