Dispatch mode for method_lookup subrequests

Bug #1631522 reported by Mike Rylander
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenSRF
Fix Released
Wishlist
Unassigned

Bug Description

There is a pattern in the wild of using OpenSRF's method_lookup() facility to decide between one of several local methods when delegating to pre-existing logic. Often times, we want to simply hand control over to another method, but the output of a subrequest's run() is an array of results. The caller has to know if, and how, to restructure the result for the client.

Instead, we can now call dispatch() instead of run() and have OpenSRF session control completely passed to the delegate code. This way, the delegate code need not know anything about its caller, and vice versa.

Here's a branch that implements that:

http://git.evergreen-ils.org/?p=working/OpenSRF.git;a=shortlog;h=refs/heads/user/miker/respond_directly_mode

Tags: pullrequest
Revision history for this message
Galen Charlton (gmc) wrote :

Pushed to master, along with my usual documentation enhancements. Thanks, Mike!

Changed in opensrf:
status: New → Fix Committed
milestone: none → 2.5-alpha
Galen Charlton (gmc)
Changed in opensrf:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.