TracNav menu
proxy
/**
* @<generator>.class proxy=true
*/
If the proxy command is placed on an interface an abstract class is generated along with that interface that delegates all method calls to a single dispatchCall(String method, Object[] args) method. This helps to bypass several limitations with dynamic proxies in some environments.
In Actionscript dynamic proxies cannot implement an interface, hence all proxy calls are untyped and hence unverified by the compiler. Using that generated class as a wrapper for the dynamic proxy implementation gives a typed and compile-time checked interface to the proxied API.
In .NET Compact Framework there are no dynamic proxies at all, such a generated class preserves you from doing a lot of repetitive handwriting.
With the proxy.baseclass and proxy.name commands you can define the name of the generated proxy and specify a superclass which it should extend.