| Modifier and Type | Method and Description |
|---|---|
static File |
getDeploymentFile(File artifactDir)
Finds the deployment file within a given artifact.
|
static Optional<MuleContext> |
getMuleContext(DeployableArtifact artifact)
Optionally returns the
MuleContext associated to the given artifact (if any) |
static boolean |
isConfigLess(DeployableArtifact artifact) |
static void |
validateArtifactLicense(ClassLoader artifactClassLoader,
List<ArtifactPlugin> artifactPlugins,
LicenseValidator licenseValidator)
Validates plugin licenses within the artifact.
|
static void |
withArtifactMuleContext(DeployableArtifact artifact,
CheckedConsumer<MuleContext> consumer)
If the output of
getMuleContext(DeployableArtifact) over the given artifact is present, then consume it with
the given consumer |
public static File getDeploymentFile(File artifactDir)
artifactDir - the artifact directory where the deployment file should be presentnull if none was foundpublic static void validateArtifactLicense(ClassLoader artifactClassLoader, List<ArtifactPlugin> artifactPlugins, LicenseValidator licenseValidator)
artifactClassLoader - the classloader of the artifactartifactPlugins - the list of pluginslicenseValidator - the license validator to use for validating the licensepublic static void withArtifactMuleContext(DeployableArtifact artifact, CheckedConsumer<MuleContext> consumer)
getMuleContext(DeployableArtifact) over the given artifact is present, then consume it with
the given consumerartifact - an artifactconsumer - a MuleContext CheckedConsumerpublic static Optional<MuleContext> getMuleContext(DeployableArtifact artifact)
MuleContext associated to the given artifact (if any)artifact - an artifactOptional MuleContextpublic static boolean isConfigLess(DeployableArtifact artifact)
artifact - a DeployableArtifactartifact doesn't specify any config resources.Copyright © 2003–2025 MuleSoft, Inc.. All rights reserved.