Annotation Interface AdminContext


@Target(TYPE) @Retention(RUNTIME) @Documented public @interface AdminContext
Used together with WebServlet, WebFilter and WebListener annotations to specify target context.

By default, web extensions target main context. Adding @AdminContext will mean registration in admin context. Using @AdminContext(andMain = true) will mean installation to both contexts.

Since:
06.08.2016
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Annotation presence switches publication to admin context.
  • Element Details

    • andMain

      boolean andMain
      Annotation presence switches publication to admin context. If both extensions must be installed in both contexts use this option.
      Returns:
      true to also install extension to main context, false for only admin context.
      Default:
      false