public final class ScopeScanner
extends java.lang.Object
AnnotatedElement| Modifier and Type | Method and Description |
|---|---|
void |
bind(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
Scope scope)
Binds the given
annotationType to
the specified scope instance. |
Scope |
scan(java.lang.reflect.AnnotatedElement element)
Scans the given
element annotations searching
for annotations present in the internal scopes
map |
public void bind(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
Scope scope)
annotationType to
the specified scope instance.
Note that this method doesn't require
the annotationType to be annotated
with Scope
annotationType - The annotation typescope - The scope instancepublic Scope scan(java.lang.reflect.AnnotatedElement element)
element annotations searching
for annotations present in the internal scopes
mapelement - The element to scanScopes.NONE if no scopes
found