com.fatwire.gst.foundation.controller.annotation
Annotation Type Bind
@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface Bind
Annotation to bind variables to the Action.
class MyAction implements Action {
{@literal @}Bind String rendermode;
{@literal @}Bind("myVar") String theVariable;
{@literal @}Bind(scope="session") ShoppingCart cart;
public void handleRequest(ICS ics){
if("live".equals(rendermode){
// do something when rendermode=live
}
}
}
- Since:
- 12 mei 2012
- Author:
- Dolf.Dijkstra
value
public abstract String value
- Returns:
- the key name of the variable to bind
- Default:
- ""
scope
public abstract Bind.Scope scope
- Returns:
- the match argument from render:lookup tag
- Default:
- com.fatwire.gst.foundation.controller.annotation.Bind.Scope.ics
Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.