Next: Persistence of framework related
Up: Filtered method invocation
Previous: Up filtering
The write_results()
method performs the work of
communicating return results and out argument values to the
client side. In the filter object framework,
write_results()
method handles additional
responsibility of Down filtering. Here, we present algorithm used to carry out Down filtering.
Scenario: Down filtering
- Perform Down filtering if method pass status is
true.
- If current method has void return type, do nothing.
- If the invocation status is bad filter client
invocation, do nothing.
- If there are no filters plugged to
current object, do nothing.
- Else iterate through plugged
filters in FIFO order till all filters are traversed. For every
filter, create a filter request and copy the current invocation
request's return value to it. Add the current invocation request's
return value to the request as in argument. Finally, invoke
the intercepted filter client method call using newly created
filter request.
- Communicate results of current invocation back to client
side.
- If current call is intercepted call at filter object,
communicate method pass status to filter client.
R K Joshi
2003-05-30