In many places, applications can use Java 5 annotations as an alternative to XML and Java properties configuration. This page serves as a reference for all annotations across the framework.
Action Annotations
Note |
---|
Since 2.1, these annotations are provided by the Convention Plugin. Codebehind and Zero Config plugins are deprecated from 2.1 on. |
Action annotations are available when the framework scans the classpath for Action classes, rather than specifying individual mappings through XML configuration. See the Zero Configuration Convention Plugin page for information on how to set up classpath scanning to allow the use of Action annotations.
Annotation | Description | ||
---|---|---|---|
Namespace Actions Annotation | Group of @Action annotations, maps multiple URLs to the same action | ||
Overrides the namespace of an action | ParentPackage Annotation | Defines an existing configuration package for the action's package to extend the URL of an action | |
Gropup of @InterceptorRef annotations | |||
Interceptor, or interceptor stack to be applied to at action | |||
Group of @Result annotations | |||
Defines an action Result a result for an action | |||
Set the path of the action URL (used to overwrite the default) | |||
Set where the results are located (used to overwrite the default) | |||
Set the parent package of the actions (used to overwrite the default) | Defines multiple Results |
Interceptor Annotations
To use these annotations, you have to specify the AnnotationWorkflowInterceptor to your interceptor stack.
...