Access to method dispatcher

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P5
    • None
    • Affects Version/s: 1.2.0
    • Component/s: specification
    • generic
    • generic

      Name: igT44549 Date: 02/11/99


      Oftentimes, it would be convenient to have access to the method dispatcher prior to a method being invoked on an object. I imagine that this could be done by a class implementing a special interface, say "MethodDispatcher":

      public interface MethodDispatcher {
         public Object invoke(Method method, Object args[]) throws
                         IllegalAccessException,
                         IllegalArgumentException,
                         InvocationTargetException;
      }

      The JVM, when encountering a class implementing this interface, would invoke a method through MethodDispatcher.invoke instead of directly on the target object.
      (Review ID: 52765)
      ======================================================================

            Assignee:
            Alex Buckley
            Reporter:
            Iris Clark
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: