Package org.apache.maven.index
Class DefaultArtifactContextProducer
- java.lang.Object
-
- org.apache.maven.index.DefaultArtifactContextProducer
-
- All Implemented Interfaces:
ArtifactContextProducer
@Singleton @Named public class DefaultArtifactContextProducer extends java.lang.Object implements ArtifactContextProducer
A default implementation of theArtifactContextProducer
.
-
-
Field Summary
Fields Modifier and Type Field Description private ArtifactPackagingMapper
mapper
private Locator
ml
private GavHelpedLocator
pl
-
Fields inherited from interface org.apache.maven.index.ArtifactContextProducer
ROLE
-
-
Constructor Summary
Constructors Constructor Description DefaultArtifactContextProducer(ArtifactPackagingMapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
mapper
private final ArtifactPackagingMapper mapper
-
pl
private GavHelpedLocator pl
-
ml
private Locator ml
-
-
Constructor Detail
-
DefaultArtifactContextProducer
@Inject public DefaultArtifactContextProducer(ArtifactPackagingMapper mapper)
-
-
Method Detail
-
getArtifactContext
public ArtifactContext getArtifactContext(IndexingContext context, java.io.File file)
Get ArtifactContext for given pom or artifact (jar, war, etc). A file can be- Specified by:
getArtifactContext
in interfaceArtifactContextProducer
-
isIndexable
private boolean isIndexable(java.io.File file)
-
getGavFromPath
private Gav getGavFromPath(IndexingContext context, java.lang.String repositoryPath, java.lang.String artifactPath)
-
-