public class

GenericByAnnotationPostProcessor

extends Object
implements PostInjectionProcessor
java.lang.Object
   ↳ com.atlassian.jira.pageobjects.framework.util.GenericByAnnotationPostProcessor<A extends java.lang.annotation.Annotation, P>

Class Overview

A generic post-injection processor that may be used to inject page objects of type P for all fields annotated with annotation A.

Summary

Nested Classes
class GenericByAnnotationPostProcessor.InjectionContext<A>  
Public Constructors
GenericByAnnotationPostProcessor(Class<A> annotationType, Function<InjectionContext<A>, P> valueProvider)
GenericByAnnotationPostProcessor(Class<A> annotationType, Function<InjectionContext<A>, P> valueProvider, String locatorMethodName)
Public Methods
static <B extends Annotation, Q> GenericByAnnotationPostProcessor<B, Q> create(Class<B> annotationType, Function<InjectionContext<B>, Q> valueProvider, String locatorMethodName)
static <B extends Annotation, Q> GenericByAnnotationPostProcessor<B, Q> create(Class<B> annotationType, Function<InjectionContext<B>, Q> valueProvider)
<T> T process(T pageObject)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.pageobjects.binder.PostInjectionProcessor

Public Constructors

public GenericByAnnotationPostProcessor (Class<A> annotationType, Function<InjectionContext<A>, P> valueProvider)

public GenericByAnnotationPostProcessor (Class<A> annotationType, Function<InjectionContext<A>, P> valueProvider, String locatorMethodName)

Public Methods

public static GenericByAnnotationPostProcessor<B, Q> create (Class<B> annotationType, Function<InjectionContext<B>, Q> valueProvider, String locatorMethodName)

public static GenericByAnnotationPostProcessor<B, Q> create (Class<B> annotationType, Function<InjectionContext<B>, Q> valueProvider)

public T process (T pageObject)