public class MavenClassLoaderModelLoader extends Object implements ClassLoaderModelLoader
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.
| Constructor and Description |
|---|
MavenClassLoaderModelLoader() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
ClassLoaderModel |
load(File artifactFile,
Map<String,Object> attributes,
ArtifactType artifactType) |
boolean |
supportsArtifactType(ArtifactType artifactType) |
public String getId()
getId in interface DescriptorLoader<ClassLoaderModel>public ClassLoaderModel load(File artifactFile, Map<String,Object> attributes, ArtifactType artifactType) throws InvalidDescriptorLoaderException
load in interface DescriptorLoader<ClassLoaderModel>InvalidDescriptorLoaderExceptionpublic boolean supportsArtifactType(ArtifactType artifactType)
supportsArtifactType in interface DescriptorLoader<ClassLoaderModel>Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.