public final class XmlApplicationParser extends Object
ConfigLine objects.
It uses the SPI interface XmlNamespaceInfoProvider to locate for all namespace info provided and normalize the
namespace from the XML document.
| Constructor and Description |
|---|
XmlApplicationParser(List<org.mule.runtime.dsl.api.xml.XmlNamespaceInfoProvider> namespaceInfoProviders) |
XmlApplicationParser(ServiceRegistry serviceRegistry,
List<ClassLoader> pluginsClassLoaders) |
| Modifier and Type | Method and Description |
|---|---|
static XmlApplicationParser |
createFromExtensionModels(Set<org.mule.runtime.api.meta.model.ExtensionModel> extensionModels)
Creates an
XmlApplicationParser based on the list of ExtensionModels used by the artifact. |
String |
getNormalizedNamespace(String namespaceUri,
String namespacePrefix) |
Optional<ConfigLine> |
parse(Element configElement) |
public XmlApplicationParser(ServiceRegistry serviceRegistry, List<ClassLoader> pluginsClassLoaders)
public XmlApplicationParser(List<org.mule.runtime.dsl.api.xml.XmlNamespaceInfoProvider> namespaceInfoProviders)
public static XmlApplicationParser createFromExtensionModels(Set<org.mule.runtime.api.meta.model.ExtensionModel> extensionModels)
XmlApplicationParser based on the list of ExtensionModels used by the artifact.
The XmlNamespaceInfoProvider will be discovered based on those extensions and the one discovered using by SPI.extensionModels - the ExtensionModels of the artifact that contains the configuration.XmlApplicationParser.public String getNormalizedNamespace(String namespaceUri, String namespacePrefix)
public Optional<ConfigLine> parse(Element configElement)
Copyright © 2003–2024 MuleSoft, Inc.. All rights reserved.