Interface FieldDecorator
-
- All Known Implementing Classes:
DefaultFieldDecorator
public interface FieldDecorator
Allows the PageFactory to decorate fields.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
decorate
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.- Parameters:
loader
- The class loader that was used for the page objectfield
- The field that may be decorated.- Returns:
- Value to decorate the field with or null if it shouldn't be decorated. If non-null, must be assignable to the field.
-
-