public final class DeployableProjectModel extends Object
ArtifactDescriptor with a
DeployableArtifactDescriptorFactory.| Constructor and Description |
|---|
DeployableProjectModel(List<String> packages,
List<String> resources,
List<Path> resourcesPath,
BundleDescriptor descriptor,
Supplier<org.mule.runtime.api.deployment.meta.MuleDeployableModel> deployableModelSupplier,
File projectFolder,
List<BundleDependency> dependencies,
Set<BundleDescriptor> sharedLibraries,
Map<BundleDescriptor,List<BundleDependency>> additionalPluginDependencies)
Creates a new instance with the provided parameters.
|
| Modifier and Type | Method and Description |
|---|---|
Map<BundleDescriptor,List<BundleDependency>> |
getAdditionalPluginDependencies()
These are dependencies that are added for each plugins.
|
List<BundleDependency> |
getDependencies()
These are the dependencies of the modeled project, regardless of the classifier.
|
org.mule.runtime.api.deployment.meta.MuleDeployableModel |
getDeployableModel()
Mule projects contain additional model information within the project itself (i.e.: mule-artifact.json file).
|
BundleDescriptor |
getDescriptor()
This contains the GAV of the modeled project.
|
List<String> |
getPackages()
These are the packages containing java classes in the modeled project.
|
File |
getProjectFolder()
This folder will be used to create the classloader for the deployable project.
|
List<String> |
getResources()
These are the resources in the modeled project.
|
List<Path> |
getResourcesPath()
These are the paths to the resources folders in the modeled project.
|
Set<BundleDescriptor> |
getSharedLibraries()
These are the descriptors of the dependencies of the modeled project that are visible to the plugins of this project.
|
void |
validate()
Performs a validation of consistency of the model fields.
|
public DeployableProjectModel(List<String> packages, List<String> resources, List<Path> resourcesPath, BundleDescriptor descriptor, Supplier<org.mule.runtime.api.deployment.meta.MuleDeployableModel> deployableModelSupplier, File projectFolder, List<BundleDependency> dependencies, Set<BundleDescriptor> sharedLibraries, Map<BundleDescriptor,List<BundleDependency>> additionalPluginDependencies)
packages - See getPackages()resources - See getResources()resourcesPath - See getResourcesPath()descriptor - See getDescriptor()deployableModelSupplier - See getDeployableModel()projectFolder - See getProjectFolder()dependencies - See getDependencies()sharedLibraries - See getSharedLibraries()additionalPluginDependencies - See additionalPluginDependenciespublic void validate()
throws ArtifactActivationException
ArtifactActivationException is
thrown indicating the situation that caused it.ArtifactActivationException - if there are consistency problems with the model fields.public List<String> getPackages()
This does not take into account the java packages of this project's dependencies.
public List<String> getResources()
resourcesPath.
This does not take into account the resources of this project's dependencies.
public List<Path> getResourcesPath()
public BundleDescriptor getDescriptor()
public org.mule.runtime.api.deployment.meta.MuleDeployableModel getDeployableModel()
public File getProjectFolder()
Temporary files related to this project will also be created within this directory.
public List<BundleDependency> getDependencies()
public Set<BundleDescriptor> getSharedLibraries()
Elements contained in this set must exist in the BundleDependency.getDescriptor() of the dependencies.
public Map<BundleDescriptor,List<BundleDependency>> getAdditionalPluginDependencies()
In each entry of this map, the dependencies in the value will be added to the plugin represented by the key.
Keys of this map must exist in the BundleDependency.getDescriptor() of the dependencies.
Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.