@Singleton @Named 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(ArtifactPackagingMapper mapper) |
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) |
private final ArtifactPackagingMapper mapper
private GavHelpedLocator pl
private Locator ml
@Inject public DefaultArtifactContextProducer(ArtifactPackagingMapper mapper)
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)