Annotation Interface IndexSubclasses
During compilation ClassIndexProcessor creates a resource files listing all classes
extending annotated class or located inside annotated package.
You can retrieve the list at runtime using either ClassIndex.getSubclasses(Class)
or ClassIndex.getPackageClasses(String).
For subclasses of the annotated class the resource file name is compatible with
what ServiceLoader expects. So if all the subclasses have a zero-argument constructor
you can use ServiceLoader. For subclasses of given package index file is named
"jaxb.index", it is located inside the package folder and it's format is compatible with
what JAXBContext.newInstance(String) expects.
what JAXBContext.newInstance(String) expects.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanSpecifies whether to store Javadoc for runtime retrieval.
-
Element Details
-
storeJavadoc
boolean storeJavadocSpecifies whether to store Javadoc for runtime retrieval.You can retrieve the stored Javadoc summary using
ClassIndex.getClassSummary(Class).- Returns:
trueif storing is successful,falseotherwise
- Default:
false
-