Next: Up filtering
Up: Filtered method invocation
Previous: Filtered method invocation
The translation process is performed by op_name()
method.
This method returns current operation (method) name. In the filter
object framework, it performs the translation from intercepted
filter client method name
to appropriate filter method name. Here, we present algorithm used by the translation process.
Scenario: Method name translation
- If the current object is not a filter, then no
translation is needed. Set invocation status to normal and return
the actual method name.
- If this is an intercepted method
call from filter client:
- If the current filter object doesn't have mappings
corresponding to intercepted client method, then set the
invocation status as bad filter client invocation and return.
- If intercepted method call is Up call, search the Up
filter methods corresponding to intercepted client method.
- If intercepted method call is Down call, search the
Down filter methods corresponding to intercepted client method.
- If one of the Up/Down filter methods is enabled, set the
invocation status as normal filter client invocation and return
enabled method name.
- Otherwise, set the invocation status
as bad filter client invocation and return.
- Else set the invocation status as normal filter method
invocation and return the actual method name.
Next: Up filtering
Up: Filtered method invocation
Previous: Filtered method invocation
R K Joshi
2003-05-30