Module org.mule.runtime.dsl.api
Package org.mule.runtime.dsl.api.xml
Interface XmlNamespaceInfoProvider
public interface XmlNamespaceInfoProvider
Mule XML extensions needs to define a XmlNamespaceProvider in which they define the extensions namespace name and the
extensions xml namespace uri prefix.
The extensions namespace must much the namespace provided at the ComponentBuildingDefinitionProvider.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionMost likely, hand made extensions will return a single value since they only provide support for a namespace but for other scenarios, like extensions build with the SDK, it may provide several values.static Stream<XmlNamespaceInfoProvider>Loads theXmlNamespaceInfoProviders from the Mule container.static Stream<XmlNamespaceInfoProvider>loadXmlNamespaceInfoProviders(ClassLoader deployableArtifactClassLoader) This one exists to support the case of crafted extensions, whoseXmlNamespaceInfoProviderdoes not precisely follow the rules defined for Mule SDKs.
-
Method Details
-
loadXmlNamespaceInfoProviders
Loads theXmlNamespaceInfoProviders from the Mule container.- Returns:
- the
XmlNamespaceInfoProviders for namespaces declared within the Mule container.
-
loadXmlNamespaceInfoProviders
static Stream<XmlNamespaceInfoProvider> loadXmlNamespaceInfoProviders(ClassLoader deployableArtifactClassLoader) This one exists to support the case of crafted extensions, whoseXmlNamespaceInfoProviderdoes not precisely follow the rules defined for Mule SDKs.- Parameters:
deployableArtifactClassLoader- the classloader of a deployable artifact from which mule-pluginsXmlNamespaceInfoProviders will be loaded.- Returns:
- the
XmlNamespaceInfoProviders for crafted extensions within the deployable artifact.
-
getXmlNamespacesInfo
Collection<XmlNamespaceInfo> getXmlNamespacesInfo()Most likely, hand made extensions will return a single value since they only provide support for a namespace but for other scenarios, like extensions build with the SDK, it may provide several values.- Returns:
- a collection of
XmlNamespaceInfowith the relation between a prefix and it's namespace URI in XML.
-