public class ClassPathClassifierContext extends Object
ClassPathClassifier.| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
ClassPathClassifierContext(org.eclipse.aether.artifact.Artifact rootArtifact,
File pluginResourcesFolder,
List<URL> classPathURLs,
List<String> excludedArtifacts,
List<String> extraBootPackages,
List<String> providedExclusions,
List<String> testExclusions,
List<String> testInclusions,
List<String> sharedPluginLibCoordinates,
List<Class> exportPluginClasses,
List<URL> applicationUrls,
boolean extensionMetadataGenerationEnabled)
Creates a context used for doing the classification of the class path.
|
| Modifier and Type | Method and Description |
|---|---|
List<URL> |
getApplicationUrls() |
List<URL> |
getClassPathURLs() |
List<String> |
getExcludedArtifacts() |
List<Class> |
getExportPluginClasses() |
List<String> |
getExtraBootPackages() |
File |
getPluginResourcesFolder() |
List<String> |
getProvidedExclusions() |
org.eclipse.aether.artifact.Artifact |
getRootArtifact() |
List<String> |
getSharedPluginLibCoordinates() |
List<String> |
getTestExclusions()
Artifacts to be excluded from being added to application
ClassLoader due to they are going to be in container
ClassLoader. |
List<String> |
getTestInclusions()
Artifacts to be included from being added to application
ClassLoader. |
boolean |
isExtensionMetadataGenerationEnabled() |
public ClassPathClassifierContext(org.eclipse.aether.artifact.Artifact rootArtifact,
File pluginResourcesFolder,
List<URL> classPathURLs,
List<String> excludedArtifacts,
List<String> extraBootPackages,
List<String> providedExclusions,
List<String> testExclusions,
List<String> testInclusions,
List<String> sharedPluginLibCoordinates,
List<Class> exportPluginClasses,
List<URL> applicationUrls,
boolean extensionMetadataGenerationEnabled)
throws IOException
rootArtifact - Artifact to the root artifact being classified. Not null.pluginResourcesFolder - File where resources for classification will be created.classPathURLs - the whole set of URLs that were loaded by IDE/Maven Surefire plugin when running the test. NotexcludedArtifacts - Maven artifacts to be excluded from artifact class loaders created here due to they are going to be
added as boot packages. In format [groupId]:[artifactId]:[extension]:[classifier]:[version].extraBootPackages - List of Strings containing the extra boot packages defined to be appended to the
container in addition to the pre-defined ones.providedExclusions - Maven artifacts to be excluded from the provided scope direct dependencies of rootArtifact. In
format [groupId]:[artifactId]:[extension]:[classifier]:[version].testExclusions - List of Maven coordinates to be excluded from application class loader. In format
[groupId]:[artifactId]:[extension]:[classifier]:[version].testInclusions - List of Maven coordinates to be included in application class loader. In format
[groupId]:[artifactId]:[extension]:[classifier]:[version].sharedPluginLibCoordinates - List of Maven coordinates in format <groupId>:<artifactId> in order to be
added to the sharedLib ArtifactClassLoaderexportPluginClasses - List of Class to be exported in addition to the ones already exported by the
plugin, for testing purposes only.applicationUrls - List of URLs to be appended to the application
ArtifactClassLoaderextensionMetadataGenerationEnabled - if while building the a plugin
ArtifactClassLoader for an
Extension the metadata should be generated.IOException - if an error happened while reading RunnerModuleUtils.EXCLUDED_PROPERTIES_FILE filepublic org.eclipse.aether.artifact.Artifact getRootArtifact()
Artifact to the current (root) artifact being tested.public File getPluginResourcesFolder()
File where resources for classification will be created.public List<String> getProvidedExclusions()
provided scope direct dependencies of the rootArtifact. In format
<groupId>:<artifactId>:[[<extension>]:<version>].public List<String> getExcludedArtifacts()
<groupId>:<artifactId>:[[<extension>]:<version>].public List<String> getTestExclusions()
ClassLoader due to they are going to be in container
ClassLoader.Set of Maven coordinates in the format:
<groupId>:<artifactId>:[[<extension>]:<version>].
public List<String> getTestInclusions()
ClassLoader.Set of Maven coordinates in the format:
<groupId>:<artifactId>:[[<classifier>]:<version>].
public List<String> getSharedPluginLibCoordinates()
List of Maven coordinates in format <groupId>:<artifactId> in order to be added to the sharedLib
ArtifactClassLoaderpublic boolean isExtensionMetadataGenerationEnabled()
true if while building the a plugin ArtifactClassLoader
for an Extension the metadata should be generated.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.