net.anotheria.maf.annotation
Annotation Type ActionAnnotation


@Target(value=TYPE)
@Retention(value=RUNTIME)
@SupportedSourceVersion(value=RELEASE_6)
public @interface ActionAnnotation

The annotation to mark a MAF action class to be mapped automatically, if configuration by annotations setting is set.

Author:
Kirill Reviakin

Required Element Summary
 String path
          The path the action must be mapped to.
 
Optional Element Summary
 String context
          Context of the action mapping.
 CommandForwardAnnotation[] forwards
          The list of possible forwards of this action.
 CommandRedirectAnnotation[] redirects
          The list of possible redirects of this action.
 

Element Detail

path

public abstract String path
The path the action must be mapped to.

Returns:
the path.

forwards

public abstract CommandForwardAnnotation[] forwards
The list of possible forwards of this action.

Returns:
the forwards list.
Default:
{}

redirects

public abstract CommandRedirectAnnotation[] redirects
The list of possible redirects of this action.

Returns:
the redirects list.
Default:
{}

context

public abstract String context
Context of the action mapping. Used to identify corresponding MAF Filter. If MAF Filter is configured without specified context - leave this not set.

Returns:
the context of the action mapping. Empty string by default.
Default:
""


Copyright © 2010-2013 anotheria.net. All Rights Reserved.