@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
Deprecated.
|
String |
value
Deprecated.
|
public abstract String value
public abstract Bind.Scope scope
Copyright © 2010–2017. All rights reserved.