next up previous
Next: Up filtering Up: Filtered method invocation Previous: Filtered method invocation

Method name translation

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
  1. If the current object is not a filter, then no translation is needed. Set invocation status to normal and return the actual method name.
  2. If this is an intercepted method call from filter client:
    1. 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.
    2. If intercepted method call is Up call, search the Up filter methods corresponding to intercepted client method.
    3. If intercepted method call is Down call, search the Down filter methods corresponding to intercepted client method.
    4. If one of the Up/Down filter methods is enabled, set the invocation status as normal filter client invocation and return enabled method name.
    5. Otherwise, set the invocation status as bad filter client invocation and return.
  3. Else set the invocation status as normal filter method invocation and return the actual method name.


next up previous
Next: Up filtering Up: Filtered method invocation Previous: Filtered method invocation
R K Joshi 2003-05-30