com.jayway.awaitility.core
Class FieldSupplierBuilder.AnnotationFieldSupplier<T>

java.lang.Object
  extended by com.jayway.awaitility.core.FieldSupplierBuilder.AnnotationFieldSupplier<T>
All Implemented Interfaces:
Callable<T>
Enclosing class:
FieldSupplierBuilder

public class FieldSupplierBuilder.AnnotationFieldSupplier<T>
extends Object
implements Callable<T>


Constructor Summary
FieldSupplierBuilder.AnnotationFieldSupplier()
           
 
Method Summary
 Callable<T> andAnnotatedWith(Class<? extends Annotation> annotationType)
          Find a field based on a name, type and annotation.
 T call()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldSupplierBuilder.AnnotationFieldSupplier

public FieldSupplierBuilder.AnnotationFieldSupplier()
Method Detail

andAnnotatedWith

public Callable<T> andAnnotatedWith(Class<? extends Annotation> annotationType)
Find a field based on a name, type and annotation. E.g. await().until(fieldIn(object).ofType(int.class).andWithName("fieldName").andAnnotatedWith(MyAnnotation.class), equalTo(2));

Parameters:
annotationType - The type of the annotation
Returns:
The supplier

call

public T call()
       throws Exception
Specified by:
call in interface Callable<T>
Throws:
Exception


Copyright © 2010. All Rights Reserved.