Package org.nuclos.api.context
Class InputContext
java.lang.Object
org.nuclos.api.context.InputContext
InputContext
adds support for requesting input from the user.
To check if the creator of the request that is executed is able to provide
additional information, use isSupported()
.
There is only one instance of this class (i.e. a singleton). Compared to all-static methods, this works better in a Spring-driven environment.
- Author:
- thomas.schiffmann
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic Serializable
Get value of requested variablestatic InputContext
static boolean
Is the creator of the request able to provide additional input?
-
Method Details
-
getInstance
-
get
Get value of requested variable- Parameters:
key
- Requested variable- Returns:
- Value of requested variable, null if not answered.
-
isSupported
public static boolean isSupported()Is the creator of the request able to provide additional input?- Returns:
- True, if request creator can handle
InputRequiredException
s, otherwise false.
-