@Component(role=ArtifactContextProducer.class) public class DefaultArtifactContextProducer extends java.lang.Object implements ArtifactContextProducer
ArtifactContextProducer
.Modifier and Type | Field and Description |
---|---|
private ArtifactPackagingMapper |
mapper |
private Locator |
ml |
private GavHelpedLocator |
pl |
ROLE
Constructor and Description |
---|
DefaultArtifactContextProducer() |
Modifier and Type | Method and Description |
---|---|
ArtifactContext |
getArtifactContext(IndexingContext context,
java.io.File file)
Get ArtifactContext for given pom or artifact (jar, war, etc).
|
private Gav |
getGavFromPath(IndexingContext context,
java.lang.String repositoryPath,
java.lang.String artifactPath) |
private boolean |
isIndexable(java.io.File file) |
@Requirement private ArtifactPackagingMapper mapper
private GavHelpedLocator pl
private Locator ml
public ArtifactContext getArtifactContext(IndexingContext context, java.io.File file)
getArtifactContext
in interface ArtifactContextProducer
private boolean isIndexable(java.io.File file)
private Gav getGavFromPath(IndexingContext context, java.lang.String repositoryPath, java.lang.String artifactPath)