public class DialogFieldProvider extends Object implements FieldProvider
| Constructor and Description |
|---|
DialogFieldProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Field field)
PageObjectInjectorListener calls this method to check if the provider is able to handle currently
injected field.
|
Optional<Object> |
provideValue(Object pageObject,
Field field,
PageObjectContext context)
Looks for DialogField annotation, reads locator data from the annotation instance
and asks AemDialogFieldResolver to produce a dialog field instance for the class field.
|
public boolean accepts(Field field)
DialogFieldProvider handles fields decorated with DialogField annotation.
accepts in interface FieldProviderpublic Optional<Object> provideValue(Object pageObject, Field field, PageObjectContext context)
provideValue in interface FieldProviderCopyright © 2016–2018 Cognifide Ltd.. All rights reserved.