731 B
731 B
Architecture
flash-ext-view runs in two layers:
-
Boot-time
ViewExtensionregistersViewRuntimeand an annotation processor.ViewTargetResolvervalidates handlers and maps annotations toViewTarget.- Resolved targets are cached per handler class.
-
Request-time
- Handler builds local
ViewModel. ViewRuntimeinjects extension globals under reservedglobalnamespace, then merges local model.ViewEngineAdapterrendersRenderOutput.
- Handler builds local
Valid Handler Contract
- Must extend
ViewHandler. - Must have route annotation (
@Route,@GET,@POST, ...). - Must declare exactly one view annotation:
@Page@Partial
Invalid configurations fail fast at startup.