org.springframework.shell.core
Class CliOptionContext

java.lang.Object
  extended by org.springframework.shell.core.CliOptionContext

public final class CliOptionContext
extends Object

Utility methods relating to shell option contexts


Method Summary
static String getOptionContext()
          Returns the option context for the current thread.
static void resetOptionContext()
          Resets the option context for the current thread.
static void setOptionContext(String optionContext)
          Stores the given option context for the current thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOptionContext

public static String getOptionContext()
Returns the option context for the current thread.

Returns:
null if none has been set

setOptionContext

public static void setOptionContext(String optionContext)
Stores the given option context for the current thread.

Parameters:
optionContext - the option context to store

resetOptionContext

public static void resetOptionContext()
Resets the option context for the current thread.