@Singleton @Named public class DefaultArtifactContextProducer extends Object implements ArtifactContextProducer
ArtifactContextProducer
.ROLE
Constructor and Description |
---|
DefaultArtifactContextProducer(ArtifactPackagingMapper mapper) |
Modifier and Type | Method and Description |
---|---|
ArtifactContext |
getArtifactContext(IndexingContext context,
File file)
Get ArtifactContext for given pom or artifact (jar, war, etc).
|
protected Gav |
getGavFromPath(IndexingContext context,
String repositoryPath,
String artifactPath) |
protected boolean |
isIndexable(File file) |
@Inject public DefaultArtifactContextProducer(ArtifactPackagingMapper mapper)
public ArtifactContext getArtifactContext(IndexingContext context, File file)
getArtifactContext
in interface ArtifactContextProducer
protected boolean isIndexable(File file)
protected Gav getGavFromPath(IndexingContext context, String repositoryPath, String artifactPath)
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.