Package io.jmix.dynmodelflowui.impl
Class BaseViewXmlProvider
java.lang.Object
io.jmix.dynmodelflowui.impl.BaseViewXmlProvider
Resolves a registered view id to the XML descriptor of the underlying static view. Shared by the
Admin UI parts that need to read an existing view's XML: the extension generator, which extends it,
and the component id provider, which lists the ids declared in it.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA resolved static view: the descriptor path usable as anextendsvalue, and the parsed root element of that descriptor. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisTemplateDescriptor(Class<?> controllerClass) @Nullable BaseViewXmlProvider.BaseViewReturns the resolved descriptor of the given view, ornullwhen the id is blank, not registered, or its controller has no descriptor path.Unwraps a dynmod-generated controller (whose descriptor is itself a view-template extension) back to the original static controller, so callers see the real view rather than a previously deployed extension.
-
Field Details
-
viewRegistry
-
viewXmlLoader
-
-
Constructor Details
-
BaseViewXmlProvider
public BaseViewXmlProvider()
-
-
Method Details
-
resolve
Returns the resolved descriptor of the given view, ornullwhen the id is blank, not registered, or its controller has no descriptor path. -
unwrap
Unwraps a dynmod-generated controller (whose descriptor is itself a view-template extension) back to the original static controller, so callers see the real view rather than a previously deployed extension. MirrorsDynamicViewDeployer.unwrapDynamicStaticViewController. -
isTemplateDescriptor
-