public class LocatorFieldCallback extends Object implements org.springframework.util.ReflectionUtils.FieldCallback
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.beans.factory.config.ConfigurableListableBeanFactory |
configurableBeanFactory |
protected LocatorBuilderFactory |
locatorBuilderFactory |
| Constructor and Description |
|---|
LocatorFieldCallback(org.springframework.beans.factory.config.ConfigurableListableBeanFactory configurableBeanFactory,
Object bean,
VaniContext vaniContext) |
| Modifier and Type | Method and Description |
|---|---|
protected <R> R |
createProxy(Class<?> targetClass,
VaniElementLocator elementLocator,
Field field)
method to create a proxy object for given field of specified class.
|
void |
doWith(Field field) |
<T extends Annotation> |
from(T annotation,
Field field) |
protected <T extends Annotation> |
fromCustom(T annotation,
Field field,
LocatorBuilderClass locatorBuilderAnnotation) |
protected org.openqa.selenium.SearchContext |
getSearchContext() |
protected <T extends Annotation> |
handle(Class<T> annotationClass,
Field field) |
protected <T extends Annotation> |
handle(T annotation,
Field field) |
protected org.springframework.beans.factory.config.ConfigurableListableBeanFactory configurableBeanFactory
protected LocatorBuilderFactory locatorBuilderFactory
public LocatorFieldCallback(org.springframework.beans.factory.config.ConfigurableListableBeanFactory configurableBeanFactory,
Object bean,
VaniContext vaniContext)
public void doWith(Field field) throws IllegalArgumentException, IllegalAccessException
doWith in interface org.springframework.util.ReflectionUtils.FieldCallbackIllegalArgumentExceptionIllegalAccessExceptionprotected <T extends Annotation> Object handle(Class<T> annotationClass, Field field)
protected <T extends Annotation> Object handle(T annotation, Field field)
protected org.openqa.selenium.SearchContext getSearchContext()
protected <R> R createProxy(Class<?> targetClass, VaniElementLocator elementLocator, Field field) throws UnresolvableLocatorException
targetClass - elementLocator - field - UnresolvableLocatorExceptionpublic <T extends Annotation> org.openqa.selenium.By from(T annotation, Field field)
protected <T extends Annotation> org.openqa.selenium.By fromCustom(T annotation, Field field, LocatorBuilderClass locatorBuilderAnnotation)
Copyright © 2016. All rights reserved.