Annotation 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 ElementsModifier and TypeOptional ElementDescriptionbooleanAnnotation presence switches publication to admin context.
-
Element Details
-
andMain
boolean andMainAnnotation 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
-