public abstract class AbstractLocatorAnnotationProcessor<A extends Annotation> extends Object implements IAnnotationProcessor<A,Object>, ReturnTypeHandler.ReturnTypeFactory<A,org.netbeans.jemmy.operators.ContainerOperator>
IAnnotationProcessors providing page objects or elements by locators| Modifier and Type | Field and Description |
|---|---|
protected JemmyContext |
context |
protected IPoFactory |
factory |
protected org.apache.log4j.Logger |
log |
protected ReturnTypeHandler<A,org.netbeans.jemmy.operators.ContainerOperator> |
returnTypeHandler |
| Constructor and Description |
|---|
AbstractLocatorAnnotationProcessor(JemmyContext context,
IPoFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
Object |
createObject(A annotation,
LocatorContextInformation info,
Class<?> type,
org.netbeans.jemmy.operators.ContainerOperator operator) |
protected abstract org.netbeans.jemmy.ComponentChooser |
getChooser(A annotation,
LocatorContextInformation info) |
protected String |
getName(Method method,
A locator) |
List<org.netbeans.jemmy.operators.ContainerOperator> |
handleCollectionType(A annotation,
LocatorContextInformation info) |
Object |
handleCountType(LocatorContextInformation info,
A annotation) |
Object |
processAnnotation(A annotation,
LocatorContextInformation info,
Object lastResult) |
protected final org.apache.log4j.Logger log
protected final JemmyContext context
protected final IPoFactory factory
protected final ReturnTypeHandler<A extends Annotation,org.netbeans.jemmy.operators.ContainerOperator> returnTypeHandler
public AbstractLocatorAnnotationProcessor(JemmyContext context, IPoFactory factory)
public Object processAnnotation(A annotation, LocatorContextInformation info, Object lastResult)
processAnnotation in interface IAnnotationProcessor<A extends Annotation,Object>protected abstract org.netbeans.jemmy.ComponentChooser getChooser(A annotation, LocatorContextInformation info)
public List<org.netbeans.jemmy.operators.ContainerOperator> handleCollectionType(A annotation, LocatorContextInformation info)
handleCollectionType in interface ReturnTypeHandler.ReturnTypeFactory<A extends Annotation,org.netbeans.jemmy.operators.ContainerOperator>public Object handleCountType(LocatorContextInformation info, A annotation)
handleCountType in interface ReturnTypeHandler.ReturnTypeFactory<A extends Annotation,org.netbeans.jemmy.operators.ContainerOperator>public Object createObject(A annotation, LocatorContextInformation info, Class<?> type, org.netbeans.jemmy.operators.ContainerOperator operator)
createObject in interface ReturnTypeHandler.ReturnTypeFactory<A extends Annotation,org.netbeans.jemmy.operators.ContainerOperator>Copyright © 2017. All rights reserved.