AbstractFrameworkHandlerMapping class abstract

A specialized AbstractAnnotatedHandlerMapping that registers JetLeaf framework-specific routes and endpoints.

AbstractFrameworkHandlerMapping extends AbstractAnnotatedHandlerMapping and provides the default infrastructure routes used internally by JetLeaf, such as the framework home page and favicon endpoints.

This class ensures that core framework functionality is accessible immediately after initialization, without requiring explicit controller definitions from the application.

Responsibilities

Initialization Flow

  1. During Pod construction, the @PreConstruct annotated init method is invoked automatically.
  2. init builds a RouterBuilder for default framework routes.
  3. Routes are parsed into PathPatterns using the injected PathPatternParserManager.
  4. Each route is registered with a corresponding FrameworkHandlerMethod.

Example

final mapping = MyFrameworkHandlerMapping(parserManager);
mapping.init();

// GET /jetleaf → serves resources/framework/home.html
// GET /favicon.ico → serves the default SVG icon

See also

Inheritance
Implementers
Annotations
  • @Author.new("Evaristus Adimonyemma")

Constructors

AbstractFrameworkHandlerMapping(PathPatternParserManager parser)
A specialized AbstractAnnotatedHandlerMapping that registers JetLeaf framework-specific routes and endpoints.

Properties

applicationContext ↔ ApplicationContext
The application context used for accessing Pod definitions.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
logger → Log
Framework logger for debug and diagnostic output.
finalinherited
parser → PathPatternParserManager
The composite path matcher used to evaluate and normalize URL patterns.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getContextPath() String
Returns the global context path from the active Environment.
inherited
getHandler(ServerHttpRequest request) HandlerMethod?
Resolves a HandlerMethod capable of handling the given request.
inherited
getPackageName() String
Represents an abstraction for identifying the package that an object, resource, or service belongs to.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onReady() Future<void>
Initializes built-in Jetleaf routes.
override
registerHandler(PathPattern pattern, HandlerMethod handler) → void
Registers a HandlerMethod for the given pattern.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited