public class AetherClassPathClassifier extends Object implements ClassPathClassifier
ArtifactUrlClassification
based on the Maven dependencies declared by the rootArtifact using Eclipse
Aether. Uses a DependencyResolver
to resolve Maven dependencies.
The classification process classifies the rootArtifact dependencies in three groups: provided
, compile
and
test
scopes. It resolves dependencies graph for each group applying filters and exclusions and classifies the list of
URL
s that would define each class loader container, plugins and application.
Dependencies resolution uses dependencies management declared by these artifacts while resolving the dependency graph.
Plugins are discovered as Extension
if they do have a annotated a Class
. It generates the Extension
metadata in order to later register it to an ExtensionManager
.Constructor and Description |
---|
AetherClassPathClassifier(DependencyResolver dependencyResolver,
ArtifactClassificationTypeResolver artifactClassificationTypeResolver)
Creates an instance of the classifier.
|
Modifier and Type | Method and Description |
---|---|
ArtifactsUrlClassification |
classify(ClassPathClassifierContext context)
Classifies
URL s and Dependency s to define how the container, plugins and application class loaders should be
created. |
public AetherClassPathClassifier(DependencyResolver dependencyResolver, ArtifactClassificationTypeResolver artifactClassificationTypeResolver)
dependencyResolver
- DependencyResolver
to resolve dependencies. Non null.artifactClassificationTypeResolver
- ArtifactClassificationTypeResolver
to identify rootArtifact type. Non null.public ArtifactsUrlClassification classify(ClassPathClassifierContext context)
URL
s and Dependency
s to define how the container, plugins and application class loaders should be
created.classify
in interface ClassPathClassifier
context
- ClassPathClassifierContext
to be used during the classification. Non null.ArtifactsUrlClassification
as result with the classificationCopyright © 2018. All rights reserved.