|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Invoke
The generic inter-component communication interface, and foundation for this paradigm. This provides a standard communication interface between objects. It is used to pass arguments to, and recieve synchronous responses from, the receiving object.
The implementation is so extrmely simple, it's included here:
public interface Invoke extends Serializable { Object invoke(String method, Object args[]) throws Exception; }
Method Summary | |
---|---|
java.lang.Object |
invoke(java.lang.String method,
java.lang.Object args)
Used by other objects to pass data into this object, and receive synchronous data responses from it, if any. |
Method Detail |
---|
java.lang.Object invoke(java.lang.String method, java.lang.Object args) throws java.lang.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.
java.lang.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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |