Class FlowContextKeys

java.lang.Object
com.iohao.net.framework.core.FlowContextKeys

public class FlowContextKeys extends Object
Holder for the ScopedValue key used to propagate FlowContext through the execution thread. Provides convenient access to the current flow context within action method processing.
Since:
25.1
Author:
渔民小镇
date:
2025-10-05
  • Field Details

    • FLOW_CONTEXT

      public static final ScopedValue<FlowContext> FLOW_CONTEXT
      Scoped value key carrying the current request's FlowContext.
  • Constructor Details

    • FlowContextKeys

      public FlowContextKeys()
  • Method Details

    • getFlowContext

      public static FlowContext getFlowContext()
      Get the current FlowContext from the scoped value, or an empty no-op instance if none is bound.
      Returns:
      the current FlowContext, never null