Class ReactiveUtils

java.lang.Object
org.springaicommunity.mcp.method.tool.ReactiveUtils

public class ReactiveUtils extends Object
  • Constructor Details

    • ReactiveUtils

      public ReactiveUtils()
  • Method Details

    • isReactiveReturnTypeOfVoid

      public static boolean isReactiveReturnTypeOfVoid(Method method)
      Check if the given type is a reactive type containing Void (e.g., Mono, Flux, Publisher)
    • isReactiveReturnTypeOfCallToolResult

      public static boolean isReactiveReturnTypeOfCallToolResult(Method method)
      Check if the given type is a reactive type containing CallToolResult (e.g., Mono, Flux, Publisher)
    • getReactiveReturnTypeArgument

      public static Optional<Type> getReactiveReturnTypeArgument(Method method)