public class ScopedRunner extends Object
Constructor and Description |
---|
ScopedRunner(FacesContext context) |
ScopedRunner(FacesContext context,
Map<String,Object> scopedVariables) |
Modifier and Type | Method and Description |
---|---|
static void |
forEach(FacesContext context,
String key,
Object value,
Runnable callback)
Invokes the callback within the scope of the given variable.
|
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.public static void forEach(FacesContext context, String key, Object value, Runnable callback)
context
- The involved faces context.key
- the key name of the variablevalue
- the value of the variablecallback
- The callback.Copyright © 2012–2022 OmniFaces. All rights reserved.