nl.pbemengine.engine.ng.blueprint.config
Annotation Type WebActionMapping


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface WebActionMapping

Configuration annotation for specifying an action mapping to a certain keyword

Author:
Jeroen Steenbeeke

Required Element Summary
 java.lang.Class handler
          The class of the action to invoke.
 java.lang.String name
          The name of the action.
 
Optional Element Summary
 boolean index
          Indicates whether or not this page is the index page.
 WebResultMapping[] results
          A list of result mappings - an action returns a certain keyword that indicates how the result should be handled.
 

Element Detail

name

public abstract java.lang.String name
The name of the action. By using an URL that refers to name.action, we invoke the action mapped by this keyword.

Returns:
The name of the action

handler

public abstract java.lang.Class handler
The class of the action to invoke. A new object of this class is created every time this action is called, so they are essentially stateless. This class, however, should implement the nl.pbemengine.ng.base.webserver.Action class

Returns:
The class of the handler

index

public abstract boolean index
Indicates whether or not this page is the index page. You should only set one action to index for each context, otherwise behavior is unspecified

Returns:
Whether or not this is an index
Default:
false

results

public abstract WebResultMapping[] results
A list of result mappings - an action returns a certain keyword that indicates how the result should be handled.

Returns:
A list of WebResultMapping annotations
Default:
{}


Copyright © 2008. All Rights Reserved.