|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.pageobjects.util.InjectUtils
public class InjectUtils
Utility methods for custom injections
| Nested Class Summary | |
|---|---|
static interface |
InjectUtils.FieldVisitor<A extends java.lang.annotation.Annotation>
A callback method for fields annotated with a certain annotation |
| Constructor Summary | |
|---|---|
InjectUtils()
|
|
| Method Summary | ||
|---|---|---|
static
|
forEachFieldWithAnnotation(java.lang.Object instance,
java.lang.Class<A> annotation,
InjectUtils.FieldVisitor<A> fieldVisitor)
Executes the callback for each private field marked with the desired annotation |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InjectUtils()
| Method Detail |
|---|
public static <A extends java.lang.annotation.Annotation> void forEachFieldWithAnnotation(java.lang.Object instance,
java.lang.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 found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||