com.atlassian.pageobjects.util
Class InjectUtils
java.lang.Object
com.atlassian.pageobjects.util.InjectUtils
public class InjectUtils
- extends Object
Utility methods for custom injections
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InjectUtils
public InjectUtils()
forEachFieldWithAnnotation
public static <A extends Annotation> void forEachFieldWithAnnotation(Object instance,
Class<A> annotation,
InjectUtils.FieldVisitor<A> fieldVisitor)
- Executes the callback for each private field marked with the desired annotation
- Type Parameters:
A - The annotation type to scan for- Parameters:
instance - The object to inspectannotation - The annotation to scan forfieldVisitor - The callback when a field is found
Copyright © 2014 Atlassian. All rights reserved.