Interface FieldDecorator

All Known Implementing Classes:
DefaultFieldDecorator

public interface FieldDecorator
Allows the PageFactory to decorate fields.
  • Method Summary

    Modifier and Type
    Method
    Description
    decorate(ClassLoader loader, Field field)
    This method is called by PageFactory on all fields to decide how to decorate the field.
  • Method Details

    • decorate

      Object decorate(ClassLoader loader, 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 object
      field - 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.