Annotation Interface Export


@Target(TYPE) @Retention(RUNTIME) public @interface Export
Annotation applied to auto-registered, exported types.

Plugins or extensions using auto-registration should apply this annotation to any non-abstract class they want exported for access.

For SSH commands the @Export annotation names the subcommand:

   @Export("print")
   class MyCommand extends SshCommand {
 
For HTTP servlets, the @Export annotation names the URL the servlet is bound to, relative to the plugin or extension's namespace within the Gerrit container.
  @Export("/index.html")
  class ShowIndexHtml extends HttpServlet {
 
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details