Annotation Type GwtScriptOnly


@Documented @Target({TYPE,METHOD}) @Deprecated public @interface GwtScriptOnly
Deprecated.
since hosted/dev mode is deprecated and has no other uses.
This annotation is used to break out of a module's source path in hosted mode. Types annotated with this annotation will not be loaded by hosted mode's CompilingClassLoader. Instead, the bytecode for the type will be loaded from the system classloader.

This annotation is typically combined with the super-source tag to provide web-mode implementations of (binary-only) types that the developer wishes to use in Development Mode. This can be used, for instance, to provide a reference implementation to develop unit tests.

This annotation may also be applied to jsni methods to prevent them from being parsed and loaded for Development Mode. This is done under certain circumstances as an optimization to avoid loading very large jsni methods which are only executed in Production Mode.