Annotation Type AutoMount
-
@Retention(RUNTIME) @Target(TYPE) @Documented @Inherited public @interface AutoMount
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 @MountPath and exist in the packagesToScan will have a mount generated.- Author:
- jsarman
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringdefaultRootAllow the configuration of the root path (not including contextPath) for auto generated paths of classesStringmimeExtensionAllow the configuration of mime type for auto generated paths of classesString[]packagesToScanAllow explicit declaration of packages that should be scanned to generate the code for auto mounts.
-
-
-
Element Detail
-
defaultRoot
String defaultRoot
Allow the configuration of the root path (not including contextPath) for auto generated paths of classes- Returns:
- Configured root for pages not requiring security
- Default:
- ""
-
-
-
mimeExtension
String mimeExtension
Allow the configuration of mime type for auto generated paths of classes- Returns:
- default mime type for auto generated paths. Defaults to "".
- Default:
- ""
-
-
-
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:
- {}
-
-