Class XmlRouteModule
The third module convention (Route-XML Ф5.2): XML route artifacts from the package manifest,
loaded into the context through the standard — which registers
routes via AddRoutes by construction, so the issue #3 trap (routes silently never
compiling) cannot recur. Bean type names resolve package-first (entry-point ALC, then
companions, then everything the default resolver sees — shared and Default ALC); artifact
file-references resolve from the package's extracted resources. Discovery order guarantees
assemblies are scanned before XML, so bean:#name objects registered by module code
are visible to the artifacts.
public sealed class XmlRouteModule : ITsakModule, IEmbeddedConfigModule
Inheritance
Implements
Properties
CanInitialize
Whether the module can be initialized (all deps met, no errors).
public bool CanInitialize { get; }
Dependencies
Names of modules this module depends on.
public IReadOnlyList<string> Dependencies { get; }
EmbeddedConfigJson
Raw JSON of the embedded {Name}.config.json; null when the package carries none.
public string? EmbeddedConfigJson { get; }
SourceDirectory
Directory where the module's DLL was loaded from.
public string? SourceDirectory { get; }
Methods
Initialize(IRouteContext)
Initializes routes in the given context, synchronously. The coordinator reaches it through the
public IRouteContext Initialize(IRouteContext context)