1 package org.apache.maven.index.util;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.io.IOException;
23 import java.util.Collection;
24 import java.util.Collections;
25 import java.util.List;
26
27 import org.apache.lucene.document.Document;
28 import org.apache.maven.index.ArtifactContext;
29 import org.apache.maven.index.ArtifactInfo;
30 import org.apache.maven.index.IndexerField;
31 import org.apache.maven.index.creator.AbstractIndexCreator;
32
33 public class SpoofIndexCreator
34 extends AbstractIndexCreator
35 {
36 protected SpoofIndexCreator( final String id, final List<String> creatorDependencies )
37 {
38 super( id, creatorDependencies );
39 }
40
41 public Collection<IndexerField> getIndexerFields()
42 {
43 return Collections.emptyList();
44 }
45
46 public void populateArtifactInfo( ArtifactContext artifactContext )
47 throws IOException
48 {
49
50 }
51
52 public void updateDocument( ArtifactInfo artifactInfo, Document document )
53 {
54
55 }
56
57 public boolean updateArtifactInfo( Document document, ArtifactInfo artifactInfo )
58 {
59
60 return false;
61 }
62 }