1.4 KiB
1.4 KiB
Architecture
flash-ext-view-jte has two layers:
-
Boot-time
JteExtensioninstalls runtime + annotation processor.JteTargetResolvervalidates handlers and resolves@Template.- Resolved targets are cached per handler class.
-
Request-time
- Handler builds local
ViewModel. - Runtime injects globals under reserved
globalnamespace and merges local model. - jte renders template into
StringOutput.
- Handler builds local
-
Static assets (optional, enabled by default)
- Extension mounts wildcard routes under
staticPrefix(default/static/**). - Assets are served from classpath
/static/**. - Uses Flash
Response.body(...)for small payloads andResponse.stream(...)for large payloads. - Supports ETag/304, gzip precompressed assets, MIME auto-resolution, and byte ranges.
- Extension mounts wildcard routes under
Handler Contract
- Must extend
JteHandler. - Must have route annotation (
@Route,@GET,@POST, ...). - Must declare exactly one view annotation:
@Template.
Invalid configurations fail fast at startup.
Defaults
templateRoot:/templatescontentType:gg.jte.ContentType.HtmldevelopmentMode:Flash.DEVusePrecompiled: derived from!developmentModeunless explicitly setbinaryStaticContent:falseserveStatics:truestaticPrefix:/staticlargeFileThresholdBytes:65536- static CORS: disabled (
false)