Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

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

InterfectorRefs Annotation

Gropup of @InterceptorRef annotations

InterfectorRef Annotation

Interceptor, or interceptor stack to be applied to at action

Results Annotation

Group of @Result annotations

Result Annotation

Defines an action Result a result for an action

Namespace Annotation

Set the path of the action URL (used to overwrite the default)

ResultPath Annotation

Set where the results are located (used to overwrite the default)

ParentPackage Annotation

Set the parent package of the actions (used to overwrite the default)

Results Annotation

Defines multiple Results

Interceptor Annotations

To use these annotations, you have to specify the AnnotationWorkflowInterceptor to your interceptor stack.

...