@Retention(value=RUNTIME) @Target(value=FIELD) public @interface Bind
   class MyAction implements Action {
      @Bind String rendermode;
      @Bind("myVar") String theVariable;
      @Bind(scope="session") ShoppingCart cart;
     public void handleRequest(ICS ics){
         if("live".equals(rendermode){
           // do something when rendermode=live
         }
     }
   }
 | Modifier and Type | Optional Element and Description | 
|---|---|
Bind.Scope | 
scope  | 
String | 
value  | 
public abstract String value
public abstract Bind.Scope scope
Copyright © 2016–2017. All rights reserved.