|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sezpoz.SpaceIndex<T,I>
public final class SpaceIndex<T extends Annotation,I>
Represents an index of a single annotation. Indices are not automatically cached (but reading them should be pretty cheap anyway).
| Method Summary | ||
|---|---|---|
Iterator<SpaceIndexItem<T,I>> |
iterator()
Find all items in the index. |
|
static
|
load(Class<T> annotation,
Class<I> instanceType,
org.sonatype.guice.bean.reflect.ClassSpace space,
boolean globalIndex)
Load an index for a given annotation type. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T extends Annotation,I> SpaceIndex<T,I> load(Class<T> annotation,
Class<I> instanceType,
org.sonatype.guice.bean.reflect.ClassSpace space,
boolean globalIndex)
throws IllegalArgumentException
annotation - the type of annotation to findinstanceType - the type of instance to be created (use Void if all instances will be null)space - a class space in which to find the index and any annotated classesglobalIndex - search the entire classloader hierarchy?
IllegalArgumentException - if the annotation type is not marked with Indexable
or the instance type is not equal to or a supertype of the annotation's actual Indexable.type()public Iterator<SpaceIndexItem<T,I>> iterator()
IndexError
as the index is parsed lazily.
iterator in interface Iterable<SpaceIndexItem<T extends Annotation,I>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||