public class DirectoryIndexer extends AbstractIndexWriter
The assumption is that the classes are tested at some stage before packaging. That will be the time when we can index the annotations, even if Eclipse decided not to run any annotation processor.
AbstractIndexWriter.StreamFactory
Constructor and Description |
---|
DirectoryIndexer() |
Modifier and Type | Method and Description |
---|---|
protected <A extends Annotation> |
add(A annotation,
String className) |
protected void |
discoverAnnotations(File directory,
String classNamePrefix,
ClassLoader loader) |
void |
index(File directory) |
protected void |
write(File directory) |
adapt, adapt, add, foundAnnotations, merge, write, writeMap
public void index(File directory) throws IOException
IOException
protected void discoverAnnotations(File directory, String classNamePrefix, ClassLoader loader) throws IOException
IOException
protected <A extends Annotation> void add(A annotation, String className)
protected void write(File directory) throws IOException
IOException
Copyright © 2015–2022 SciJava. All rights reserved.