You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/01/08 00:05:06 UTC

DO NOT REPLY [Bug 33006] New: - [chain] Proposal: DispatchChain

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=33006>.
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=33006

           Summary: [chain] Proposal: DispatchChain
           Product: Commons
           Version: 1.0 Final
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: chain
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: sean.schofield@gmail.com


Building on Joe's idea of DispatchAction, this class would allow you to call 
an entire chain using a dispatch method.  The commands in the chain could be 
either regular commands with dispatch methods or actual subclasses of 
DispatchAction.

I can envision scenarios where it would be nice to have combine several 
commands and call them all using a variety of dispatch commands. 

Example: One chain that would populate an object in the context by reading 
from the database and another chain that would store the values back to the 
database.  Each command in the chain could have a read() and write() method 
and make use of common business logic such as communicating with the 
appropriate DAO.

I'll submit the actual code and test case sometime this weekend.  In the 
meantime, I'm interested in feedback.

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org