FrameworkHandlerMethod constructor

FrameworkHandlerMethod(
  1. HandlerArgumentContext _context,
  2. RouteDefinition definition
)

Creates a new FrameworkHandlerMethod for the given definition.

A lightweight HandlerMethod representing a framework-provided route.

This handler type is used by FrameworkHandlerMapping to execute built-in route definitions that do not belong to user controllers. Instead of a target class, it reflects back to its own class type.

Purpose

  • Represents internal framework endpoints (e.g., /jetleaf).
  • Avoids dependency on any user-defined pods or controller pods.
  • Integrates seamlessly into the normal handler dispatch process.

Example

final handler = FrameworkHandlerMethod(
  DefaultHandlerExecutionContext(),
  definition,
);
final ctx = handler.getContext();
ctx.invoke(); // Executes the internal handler

See also

Implementation

FrameworkHandlerMethod(this._context, this.definition);