org.wicketstuff.annotation.mount
Annotation Type MountDefinition


@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.

Author:
Doug Donohoe
See Also:
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

strategyClass

public abstract Class<? extends org.apache.wicket.request.target.coding.IRequestTargetUrlCodingStrategy> strategyClass
Returns:
a class that implements IRequestTargetUrlCodingStrategy

argOrder

public abstract 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).

Worth Repeating: The AnnotatedMountScanner assumes that the first two parameters to any constructor are String (mount path) and Class (Page class).

Returns:
Order of arguments.


Copyright © 2012. All Rights Reserved.