|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value=ANNOTATION_TYPE) @Retention(value=RUNTIME) @Documented public @interface MountDefinition
An annotation used to define basic information about a mount annotation:
Note: Even though it doesn't show up in the Javadoc, if you have a mount value that you would like to default to null, you can specify default MountDefinition.NULL in the annotation definition.
MountMixedParam is a good
example of the intended use of this annotation. That Annotation defines
how to mount a page using MixedParamUrlCodingStrategy.
Note that
the MountMixedParam
annotation also is marked as Inherited so that Pages which
subclass a Page annotated with MountMixedParam also inherit the definition.
Note that MountPath is not inherited as you typically want different
pages mounted at different locations.
MixedParam annotation for a specific example| Required Element Summary | |
|---|---|
String[] |
argOrder
In annotation we are marking, the order that the annotation's values should be passed into the strategyClass's constructor as supplemental constructor arguments after the default first two of String (mount path) and Class (Page class). |
Class<? extends org.apache.wicket.request.target.coding.IRequestTargetUrlCodingStrategy> |
strategyClass
|
| Element Detail |
|---|
public abstract Class<? extends org.apache.wicket.request.target.coding.IRequestTargetUrlCodingStrategy> strategyClass
IRequestTargetUrlCodingStrategypublic abstract String[] argOrder
Worth Repeating: The AnnotatedMountScanner assumes
that the first two parameters to any constructor are String (mount path)
and Class (Page class).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||