- All Known Implementing Classes:
public interface FieldDecoratorAllows the PageFactory to decorate fields.
java.lang.Object decorate(java.lang.ClassLoader loader, java.lang.reflect.Field field)This method is called by PageFactory on all fields to decide how to decorate the field.
loader- The class loader that was used for the page object
field- The field that may be decorated.
- Value to decorate the field with or null if it shouldn't be decorated. If non-null, must be assignable to the field.