Class ExecutionContext

java.lang.Object
com.e1c.g5.dt.applications.ExecutionContext

public final class ExecutionContext extends Object
The execution context of the application operations.
  • Field Details

    • ACTIVE_SHELL_NAME

      public static final String ACTIVE_SHELL_NAME
      The execution context key to hold an UI shell.
      See Also:
    • ACTIVE_LAUNCH

      public static final String ACTIVE_LAUNCH
      The execution context key to hold an active Eclipse launch instance.
      See Also:
    • DEBUG_URL

      public static final String DEBUG_URL
      The execution context key to hold the IDE debugger connection URL.
      See Also:
    • DEBUG_TARGET

      public static final String DEBUG_TARGET
      The execution context key to hold the debug process IDebugTarget instance.
      See Also:
    • LAUNCH_URL

      public static final String LAUNCH_URL
      The execution context key to hold the launch (open) URL.
      See Also:
  • Constructor Details

    • ExecutionContext

      public ExecutionContext()
      Creates an empty instance of ExecutionContext.
    • ExecutionContext

      public ExecutionContext(Map<String,Object> properties)
      Creates an instance of ExecutionContext with the provided properties.
      Parameters:
      properties - the context key-value map, cannot be null
  • Method Details

    • getProperty

      public <T> Optional<T> getProperty(String key)
      Returns a context value stored for the provided key.
      Parameters:
      key - the context key, cannot be null
      Returns:
      the optional context value stored for the provided key
    • setProperty

      public void setProperty(String key, Object value)
      Sets the context value for the provided key.
      Parameters:
      key - the context key, cannot be null
      value - the context value, cannot be null
    • setProperties

      public void setProperties(Map<String,Object> properties)
      Sets the context key-value map.
      Parameters:
      properties - the context key-value map, cannot be null
    • copy

      public ExecutionContext copy()
      Copies context with all keys and values.
      Returns:
      the context copy, never null
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object