Annotation Type SecureAutoMount


  • @Retention(RUNTIME)
    @Target(TYPE)
    @Documented
    @Inherited
    public @interface SecureAutoMount
    Annotation that is applied to a Wicket Application Class to denote to the auto mount processor that the Application desires generated code for mounting pages. All pages that are annotated with @AuthroizedInstantiation and exist in the packagesToScan will have a mount generated. All @MountPath that exist in the packagesToScan will also have a mount generated.
    Author:
    jsarman
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String defaultMimeExtension
      Allow the configuration of mime type for auto generated paths of classes that are not an authorized page.
      String defaultRoot
      Allow the configuration of the root path (not including contextPath) for auto generated paths of classes that are not an authorized page.
      String[] packagesToScan
      Allow explicit declaration of packages that should be scanned to generate the code for auto mounts.
      String secureMimeExtension
      Allow the configuration of mime type for auto generated paths of classes that are annotated with @AuthorizedInstantiation.
      String secureRoot
      Allow the configuration of the root path (not including contextPath) for auto generated paths of classes that are annotated with @AuthorizedInstantiation.
    • Element Detail

      • defaultRoot

        String defaultRoot
        Allow the configuration of the root path (not including contextPath) for auto generated paths of classes that are not an authorized page.
        Returns:
        Configured root for pages not requiring security
        Default:
        ""
      • defaultMimeExtension

        String defaultMimeExtension
        Allow the configuration of mime type for auto generated paths of classes that are not an authorized page.
        Returns:
        default mime type for auto generated paths. Defaults to "html".
        Default:
        "html"
      • secureRoot

        String secureRoot
        Allow the configuration of the root path (not including contextPath) for auto generated paths of classes that are annotated with @AuthorizedInstantiation. This includes any class that resides in a package that is also annotated with @AuthorizedInstantiation.
        Returns:
        Configured root for pages requiring security. Defaults to "secure".
        Default:
        "secure"
      • secureMimeExtension

        String secureMimeExtension
        Allow the configuration of mime type for auto generated paths of classes that are annotated with @AuthorizedInstantiation. This includes any class that resides in a package that is also annotated with @AuthorizedInstantiation.
        Returns:
        default mime type for auto generated paths. Defaults to "html".
        Default:
        "html"
      • packagesToScan

        String[] packagesToScan
        Allow explicit declaration of packages that should be scanned to generate the code for auto mounts. If not set then the scanned packages are set to the package of the application annotated with @SecureMount as the root package and all packages that are a branch of the root. If packages are explicitly set then .* to end of packages allows the branches to be scanned. If a package is set without the .* then only that package is scanned.
        Returns:
        String array of packages that are scanned for auto mounting.
        Default:
        {}