public enum DependencyResolutionMode extends Enum<DependencyResolutionMode>
ArtifactAst may be calculated when calling
ArtifactAst.dependencies().
The setting of this mode is done through a system property that is read whenever it is needed.
| Enum Constant and Description |
|---|
COMPILED
All the dependencies that the artifact is compiled with are returned.
|
MINIMAL
Only the extensions that are being actually used by the artifact are returned.
|
WITH_PARENT
Same as
COMPILED, but also includes the dependencies of the parent artifact |
| Modifier and Type | Method and Description |
|---|---|
static DependencyResolutionMode |
getDependencyResolutionMode()
Reads a system property and obtains the proper value from that.
|
abstract Set<org.mule.runtime.api.meta.model.ExtensionModel> |
resolveDependencies(Supplier<Set<org.mule.runtime.api.meta.model.ExtensionModel>> extensionModelsSupplier,
ArtifactAst artifactAst)
Generates a set of
ExtensionModels according to the resolution mode type. |
static DependencyResolutionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DependencyResolutionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DependencyResolutionMode MINIMAL
public static final DependencyResolutionMode COMPILED
public static final DependencyResolutionMode WITH_PARENT
COMPILED, but also includes the dependencies of the parent artifactpublic static DependencyResolutionMode[] values()
for (DependencyResolutionMode c : DependencyResolutionMode.values()) System.out.println(c);
public static DependencyResolutionMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static DependencyResolutionMode getDependencyResolutionMode()
DependencyResolutionModeIllegalArgumentException - if the system property contains an invalid value.public abstract Set<org.mule.runtime.api.meta.model.ExtensionModel> resolveDependencies(Supplier<Set<org.mule.runtime.api.meta.model.ExtensionModel>> extensionModelsSupplier, ArtifactAst artifactAst)
ExtensionModels according to the resolution mode type. For more details, see each implementation.extensionModelsSupplier - A supplier from the declaration of the components added by the ArtifactAstBuilder.artifactAst - The artifact AST.ArtifactAst.dependencies().Copyright © 2022 MuleSoft, Inc.. All rights reserved.