org.wicketstuff.annotation.mount
Annotation Type MountPath


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface MountPath

Specify the primary and alternate paths to mount a Page.

If no value (or an empty string) is provided, the AnnotatedMountScanner class will resolve a value based on the page class (by default, pageClass.getSimpleName()).

The primary mount path is listed ahead of alternate paths in any list returned by AnnotatedMountScanner. This is done because of the implementation of WebRequestCodingStrategy getMountEncoder() returns the first mount that matches the given Page. Thus, when determining which path to mount a page on, it always picks the first one found.

Author:
Doug Donohoe, Ronald Tetsuo Miura

Optional Element Summary
 String[] alt
           
 String value
           
 

value

public abstract String value
Returns:
primary mount path. If no value (or an empty string) is provided, the AnnotatedMountScanner class will resolve a value based on the page class (by default, pageClass.getSimpleName()).
Default:
""

alt

public abstract String[] alt
Returns:
alternate mount paths
Default:
{}


Copyright © 2012. All Rights Reserved.