public class ArtifactAstUtils extends Object
ArtifactAst (for internal usage only).| Modifier and Type | Method and Description |
|---|---|
static org.mule.runtime.ast.api.ArtifactAst |
parseArtifact(String[] configResources,
AstXmlParserSupplier parserSupplier,
Set<org.mule.runtime.api.meta.model.ExtensionModel> extensions,
boolean disableValidations,
ClassLoader artifactClassLoader,
MuleSdkExtensionModelLoadingMediator extensionModelMediator)
Parses
configResources for a Mule artifact and returns an ArtifactAst enriched with an additional
ExtensionModel which models the artifact itself, with all its defined operations, sources, functions, etc. |
public static org.mule.runtime.ast.api.ArtifactAst parseArtifact(String[] configResources, AstXmlParserSupplier parserSupplier, Set<org.mule.runtime.api.meta.model.ExtensionModel> extensions, boolean disableValidations, ClassLoader artifactClassLoader, MuleSdkExtensionModelLoadingMediator extensionModelMediator) throws org.mule.runtime.core.api.config.ConfigurationException
configResources for a Mule artifact and returns an ArtifactAst enriched with an additional
ExtensionModel which models the artifact itself, with all its defined operations, sources, functions, etc.
This extra ExtensionModel is accessible through the ArtifactAst.dependencies().
configResources - the paths to the artifact's config filesparserSupplier - the supplier used to obtain the ast parser. It might be invoked several times during the
parsingextensions - the initial set of extensions the artifact depends on.disableValidations - whether to disable DSL validationartifactClassLoader - the artifact's classloaderextensionModelMediator - a mediator capable of providing the ExtensionModel which models the artifact itself.ArtifactAstorg.mule.runtime.core.api.config.ConfigurationException - it the artifact couldn't be parsedCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.