public class MacroExpansionModulesModel extends Object
MacroExpansionModulesModel goes over all the parametrized ExtensionModel by filtering them if they have
the XmlExtensionModelProperty (implies that has to be macro expanded).
For every occurrence that happens, it will expand the operations/configurations by working with the
MacroExpansionModuleModel passing through just one ExtensionModel to macro expand in the current Mule
Application (held by the ApplicationModel.| Constructor and Description |
|---|
MacroExpansionModulesModel(ApplicationModel applicationModel,
Set<org.mule.runtime.api.meta.model.ExtensionModel> extensions)
From a mutable
applicationModel, it will store it to apply changes when the expand() method is executed. |
| Modifier and Type | Method and Description |
|---|---|
void |
expand()
Goes through the entire xml mule application looking for the message processors that can be expanded, and then takes care of
the global elements if there are at least one
ExtensionModel to macro expand. |
static Set<String> |
getUsedNamespaces(ComponentModel rootComponentModel)
Given an XML, will look for all attributes of the root element that start with
XMLConstants.XMLNS_ATTRIBUTE and for
each of those, it will pick up the value of it, to then add it to a collection of used namespaces. |
public MacroExpansionModulesModel(ApplicationModel applicationModel, Set<org.mule.runtime.api.meta.model.ExtensionModel> extensions)
applicationModel, it will store it to apply changes when the expand() method is executed.applicationModel - to modify given the usages of elements that belong to the ExtensionModels contained in the
extensions map.extensions - set with all the loaded ExtensionModels from the deployment that will be filtered by looking up
only those that are coming from an XML context through the XmlExtensionModelProperty property.public void expand()
ExtensionModel to macro expand.public static Set<String> getUsedNamespaces(ComponentModel rootComponentModel)
XMLConstants.XMLNS_ATTRIBUTE and for
each of those, it will pick up the value of it, to then add it to a collection of used namespaces.rootComponentModel - element to look for the attributes.Copyright © 2003–2019 MuleSoft, Inc.. All rights reserved.