public class MessageDispatcher extends Object
Constructor and Description |
---|
MessageDispatcher() |
Modifier and Type | Method and Description |
---|---|
static Object |
dispatch(Object target,
String methodName,
Object... args)
Dispatches a call to methodName inside target based on the type of message.
|
public static Object dispatch(Object target, String methodName, Object... args)
Note that this scheme finds only exact matches between types of arguments and declared types of formal parameters for declared or inherited methods. So it will not call a method with formal parameter types of (Transaction, List) if the actual arguments are (Transaction, ArrayList).
Copyright © 2019 Power TAC. All rights reserved.