Adds support for calling Java methods to handle a frames call. A call to a frames method annotated with {@link JavaHandler} will cause the suppliedfactory to instantiate an instance of the handler class and call the appropriate method on it.
The default implementation is an inner class of the frame interface named 'Impl'. For example:
interface Person { @JavaHandler public String doSomething(); abstract class Impl implements Person, JavaHandlerContext{ public String doSomething() { return "Use Frames!"; } } }
The implementation class can be overridden by using the {@link JavaHandlerClass} annotation.
@author Bryn Cooke
|
|