Interface NativeJavaJobParameterContext
-
public interface NativeJavaJobParameterContext
Context used to get/set the in and out values for parameters for the Native Java Job. Note: Non-parameter variables can be retrieved bygetInValue(String)
, but not usesetOutValue(String, Object)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
getInValue(String name)
Retrieve value for given name.<T> void
setOutValue(String name, T value)
Sets given "out" value.
-
-
-
Method Detail
-
getInValue
<T> T getInValue(String name)
Retrieve value for given name. If the name is not known will throw a RuntimeException.- Parameters:
name
- The name- Returns:
- Value for given name, can be null.
-
setOutValue
<T> void setOutValue(String name, T value)
Sets given "out" value. Can be set for parameters with InOut/Out direction only. For other non-parameter variables throws aUnsupportedOperationException
when used. Throws a RuntimeException if name is not known.- Parameters:
name
- The parameter namevalue
- The value to set, can be null.
-
-