use of org.mule.runtime.config.internal.dsl.model.extension.xml.property.GlobalElementComponentModelModelProperty in project mule by mulesoft.
the class MacroExpansionModuleModel method getModuleGlobalElements.
private List<ComponentModel> getModuleGlobalElements() {
List<ComponentModel> moduleGlobalElements = new ArrayList<>();
Optional<ConfigurationModel> config = getConfigurationModel();
if (config.isPresent() && config.get().getModelProperty(GlobalElementComponentModelModelProperty.class).isPresent()) {
GlobalElementComponentModelModelProperty globalElementComponentModelModelProperty = config.get().getModelProperty(GlobalElementComponentModelModelProperty.class).get();
moduleGlobalElements = globalElementComponentModelModelProperty.getGlobalElements();
}
return moduleGlobalElements;
}
Aggregations