public class ScopedRunner extends Object
Constructor and Description |
---|
ScopedRunner(FacesContext context) |
ScopedRunner(FacesContext context,
Map<String,Object> scopedVariables) |
Modifier and Type | Method and Description |
---|---|
void |
invoke(Callback.Void callback)
Invokes the callback within the scope of the variables being given in the constructor.
|
ScopedRunner |
with(String key,
Object value)
Adds the given variable to this instance.
|
public ScopedRunner(FacesContext context)
public ScopedRunner(FacesContext context, Map<String,Object> scopedVariables)
public ScopedRunner with(String key, Object value)
key
- the key name of the variablevalue
- the value of the variablepublic void invoke(Callback.Void callback)
callback
- The callback.Copyright © 2012–2014 OmniFaces. All rights reserved.