Class MuleArtifactAstLoader


  • public class MuleArtifactAstLoader
    extends Object
    Loads an ArtifactAst from an exploded Mule application.
    • Constructor Detail

      • MuleArtifactAstLoader

        public MuleArtifactAstLoader​(org.mule.runtime.container.api.ModuleRepository moduleRepository,
                                     org.slf4j.Logger log,
                                     boolean forceConfigParse)
        Parameters:
        moduleRepository -
        log -
        forceConfigParse - if set to true, any serialized AST present in the artifact will be ignored and the AST will be generated by parsing the config.
    • Method Detail

      • loadFromArtifact

        public org.mule.runtime.ast.api.ArtifactAst loadFromArtifact​(File explodedAppDir)
                                                              throws IllegalArgumentException,
                                                                     IOException
        Loads an ArtifactAst from an exploded Mule application.
        Parameters:
        explodedAppDir - the directory where the muleApp is exploded
        Returns:
        the loaded ArtifactAst for the Mule application.
        Throws:
        IllegalArgumentException
        IOException