public class InjectUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
InjectUtils.FieldVisitor<A extends Annotation>
A callback method for fields annotated with a certain annotation
|
| Constructor and Description |
|---|
InjectUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <A extends Annotation> |
forEachFieldWithAnnotation(Object instance,
Class<A> annotation,
InjectUtils.FieldVisitor<A> fieldVisitor)
Executes the callback for each private field marked with the desired annotation
|
public static <A extends Annotation> void forEachFieldWithAnnotation(Object instance, Class<A> annotation, InjectUtils.FieldVisitor<A> fieldVisitor)
A - The annotation type to scan forinstance - The object to inspectannotation - The annotation to scan forfieldVisitor - The callback when a field is foundCopyright © 2015 Atlassian. All rights reserved.