public interface Invoke extends Serializable
The implementation is so extrmely simple, it's included here:
public interface Invoke extends Serializable {
Object invoke(String method, Object args[]) throws Exception;
}Object invoke(String method, Object args) throws Exception
Note: this method could be called reentrantly, by many objects, simultaneously. If this would cause a problem, the critical sections of this item's method must be synchronized. In general, synchronising the whole method is strongly discouraged, as it could block multiple clients far too generally.
method - The name of the method to be invoked on the object,
except in extremely special circumstances, it should not be null.args - The data relevant to the invocation. It can be a single
object, an array or objects, or simply null.Exception - As needed by the application. Note: subclasses
of Exception can be thrown, to allow clients the opportunity to catch
only specific types, these exceptions could also contain application
specific methods, and fields, to supplement the error information.Copyright © 2016. All Rights Reserved.