public class DeployableMavenClassLoaderModelLoader extends AbstractMavenClassLoaderModelLoader
BundleDescriptor of a given plugin's location and also creating a
ClassLoaderModel
TODO(fernandezlautaro): MULE-11094 this class is the default implementation for discovering dependencies and URLs, which happens to be Maven based. There could be other ways to look for dependencies and URLs (probably for testing purposes where the plugins are done by hand and without maven) which will imply implementing the jira pointed out in this comment.
| Modifier and Type | Field and Description |
|---|---|
static String |
ADD_TEST_DEPENDENCIES_KEY |
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
DeployableMavenClassLoaderModelLoader(org.mule.maven.client.api.MavenClient mavenClient,
org.mule.maven.client.api.LocalRepositorySupplierFactory localRepositorySupplierFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addArtifactSpecificClassloaderConfiguration(File artifactFile,
ClassLoaderModel.ClassLoaderModelBuilder classLoaderModelBuilder,
Set<BundleDependency> dependencies)
Template method to add artifact specific configuration to the
ClassLoaderModel.ClassLoaderModelBuilder |
protected boolean |
enabledTestDependencies()
Template method to enable/disable test dependencies as part of the artifact classpath.
|
String |
getId() |
protected org.apache.maven.model.Model |
loadPomModel(File artifactFile)
Template method to get the unresolved pom model from the artifact file
|
boolean |
supportsArtifactType(ArtifactType artifactType) |
convertBundleDependency, load, load, loadUrlspublic static final String ADD_TEST_DEPENDENCIES_KEY
protected final org.slf4j.Logger logger
public DeployableMavenClassLoaderModelLoader(org.mule.maven.client.api.MavenClient mavenClient,
org.mule.maven.client.api.LocalRepositorySupplierFactory localRepositorySupplierFactory)
public String getId()
getId in interface DescriptorLoader<ClassLoaderModel>getId in class AbstractMavenClassLoaderModelLoaderprotected void addArtifactSpecificClassloaderConfiguration(File artifactFile, ClassLoaderModel.ClassLoaderModelBuilder classLoaderModelBuilder, Set<BundleDependency> dependencies)
AbstractMavenClassLoaderModelLoaderClassLoaderModel.ClassLoaderModelBuilderaddArtifactSpecificClassloaderConfiguration in class AbstractMavenClassLoaderModelLoaderartifactFile - the artifact file from which the classloader model is generated.classLoaderModelBuilder - the builder used to generate ClassLoaderModel of the artifact.dependencies - the set of dependencies of the artifact.protected boolean enabledTestDependencies()
AbstractMavenClassLoaderModelLoaderenabledTestDependencies in class AbstractMavenClassLoaderModelLoaderprotected org.apache.maven.model.Model loadPomModel(File artifactFile)
AbstractMavenClassLoaderModelLoaderloadPomModel in class AbstractMavenClassLoaderModelLoaderartifactFile - the artifact filepublic boolean supportsArtifactType(ArtifactType artifactType)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.