use of org.mule.runtime.config.api.dsl.processor.xml.XmlApplicationServiceRegistry in project mule by mulesoft.
the class DefaultXmlArtifactDeclarationLoader method loadArtifactConfig.
private ConfigLine loadArtifactConfig(String name, InputStream resource) {
checkArgument(resource != null, "The given application was not found as resource");
Document document = noValidationDocumentLoader().loadDocument(context.getExtensions(), name, resource);
return new XmlApplicationParser(new XmlApplicationServiceRegistry(new SpiServiceRegistry(), context), resolveContextArtifactPluginClassLoaders()).parse(document.getDocumentElement()).orElseThrow(() -> new MuleRuntimeException(createStaticMessage("Could not load load a Configuration from the given resource")));
}
use of org.mule.runtime.config.api.dsl.processor.xml.XmlApplicationServiceRegistry in project mule by mulesoft.
the class MuleArtifactContext method createApplicationParser.
private XmlApplicationParser createApplicationParser(List<ClassLoader> pluginsClassLoaders) {
ExtensionManager extensionManager = muleContext.getExtensionManager();
ServiceRegistry customRegistry = extensionManager != null ? new XmlApplicationServiceRegistry(serviceRegistry, DslResolvingContext.getDefault(extensionManager.getExtensions())) : serviceRegistry;
return new XmlApplicationParser(customRegistry, pluginsClassLoaders);
}
Aggregations