public class ScopedRunner
extends java.lang.Object
Constructor and Description |
---|
ScopedRunner(javax.faces.context.FacesContext context) |
ScopedRunner(javax.faces.context.FacesContext context,
java.util.Map<java.lang.String,java.lang.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(java.lang.String key,
java.lang.Object value)
Adds the given variable to this instance.
|
public ScopedRunner(javax.faces.context.FacesContext context)
public ScopedRunner(javax.faces.context.FacesContext context, java.util.Map<java.lang.String,java.lang.Object> scopedVariables)
public ScopedRunner with(java.lang.String key, java.lang.Object value)
key
- the key name of the variablevalue
- the value of the variablepublic void invoke(Callback.Void callback)
callback
-