Search in sources :

Example 11 with ExtensionManager

use of org.mule.runtime.core.api.extension.ExtensionManager 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);
}
Also used : XmlApplicationParser(org.mule.runtime.config.api.dsl.processor.xml.XmlApplicationParser) ExtensionManager(org.mule.runtime.core.api.extension.ExtensionManager) XmlApplicationServiceRegistry(org.mule.runtime.config.api.dsl.processor.xml.XmlApplicationServiceRegistry) SpiServiceRegistry(org.mule.runtime.core.api.registry.SpiServiceRegistry) ServiceRegistry(org.mule.runtime.core.api.registry.ServiceRegistry) XmlApplicationServiceRegistry(org.mule.runtime.config.api.dsl.processor.xml.XmlApplicationServiceRegistry)

Aggregations

ExtensionManager (org.mule.runtime.core.api.extension.ExtensionManager)11 Test (org.junit.Test)3 HashSet (java.util.HashSet)2 MuleRuntimeException (org.mule.runtime.api.exception.MuleRuntimeException)2 ExtensionModel (org.mule.runtime.api.meta.model.ExtensionModel)2 MuleContext (org.mule.runtime.core.api.MuleContext)2 Application (org.mule.runtime.deployment.model.api.application.Application)2 CompositeArtifactExtensionManager (org.mule.runtime.module.deployment.impl.internal.policy.CompositeArtifactExtensionManager)2 HashMap (java.util.HashMap)1 List (java.util.List)1 Map (java.util.Map)1 Optional (java.util.Optional)1 Set (java.util.Set)1 MuleArtifactFunctionalTestCase (org.mule.functional.junit4.MuleArtifactFunctionalTestCase)1 DslResolvingContext (org.mule.runtime.api.dsl.DslResolvingContext)1 DslResolvingContext.getDefault (org.mule.runtime.api.dsl.DslResolvingContext.getDefault)1 InitialisationException (org.mule.runtime.api.lifecycle.InitialisationException)1 Pair (org.mule.runtime.api.util.Pair)1 XmlApplicationParser (org.mule.runtime.config.api.dsl.processor.xml.XmlApplicationParser)1 XmlApplicationServiceRegistry (org.mule.runtime.config.api.dsl.processor.xml.XmlApplicationServiceRegistry)1