org.codehaus.waffle.action.annotation
Annotation Type ActionMethod


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface ActionMethod

This annotation identifies a method as being an Action Method. See SecurityMethodInterceptor to protect your application from potential security risk (e.g. hackers).

Author:
Mauro Talevi, Michael Ward

Optional Element Summary
 boolean asDefault
          When set signal that the annotated method should be invoked when no other ActionMethod was requested.
 java.lang.String[] parameters
          Used to define the parameter names that should be used to resolve an action methods arguments (order is important).
 

parameters

public abstract java.lang.String[] parameters
Used to define the parameter names that should be used to resolve an action methods arguments (order is important).

Returns:
the parameter names to resolve with
Default:
{}

asDefault

public abstract boolean asDefault
When set signal that the annotated method should be invoked when no other ActionMethod was requested.

Returns:
true if the annotated method should be default.
Default:
false


Copyright © 2008. All Rights Reserved.