Interface WebApplicationExtensionContext

    • Method Detail

      • add

        void add​(Class<? extends WebApplicationExtension> extension)
        Add the extension to the web application.

        This will add this extension to the list of extensions that will be used when configuring the web application.

        Parameters:
        extension - the extension.
      • add

        void add​(WebApplicationExtension extension)
        Add the extension to the web application.

        This will add this extension to the list of extensions that will be used when configuring the web application.

        Parameters:
        extension - the extension.
      • remove

        void remove​(Class<? extends WebApplicationExtension> extension)
        Remove the extension from the web application.

        This will remove the extension from the list of extensions that will be used when configuring the web application.

        NOTE this will ONLY remove this extension. Any extensions that were added to the list by this extension BEFORE it was removed will NOT be removed from the list of extensions. This is by design.

        Parameters:
        extension - the extension.