-
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)
======================================================================
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)
======================================================================
- duplicates
-
JDK-6193725 Improved method forwarding (requires change to JVM)
-
- Closed
-