Class SimpleByAnnotationPostProcessor<A extends Annotation,P>
java.lang.Object
com.atlassian.jira.pageobjects.framework.util.SimpleByAnnotationPostProcessor<A,P>
- All Implemented Interfaces:
com.atlassian.pageobjects.binder.PostInjectionProcessor
public class SimpleByAnnotationPostProcessor<A extends Annotation,P>
extends Object
implements com.atlassian.pageobjects.binder.PostInjectionProcessor
A generic post-injection processor that may be used to inject objects of type P for all
fields annotated with annotation A.
- Since:
- v8.17
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionSimpleByAnnotationPostProcessor(Class<A> annotationType, com.google.common.base.Function<SimpleByAnnotationPostProcessor.InjectionContext<A>, P> valueProvider) -
Method Summary
Modifier and TypeMethodDescriptionstatic <B extends Annotation,Q>
SimpleByAnnotationPostProcessor<B, Q> create(Class<B> annotationType, com.google.common.base.Function<SimpleByAnnotationPostProcessor.InjectionContext<B>, Q> valueProvider) <T> Tprocess(T pageObject)
-
Constructor Details
-
SimpleByAnnotationPostProcessor
public SimpleByAnnotationPostProcessor(Class<A> annotationType, com.google.common.base.Function<SimpleByAnnotationPostProcessor.InjectionContext<A>, P> valueProvider)
-
-
Method Details
-
create
public static <B extends Annotation,Q> SimpleByAnnotationPostProcessor<B,Q> create(Class<B> annotationType, com.google.common.base.Function<SimpleByAnnotationPostProcessor.InjectionContext<B>, Q> valueProvider) -
process
public <T> T process(T pageObject) - Specified by:
processin interfacecom.atlassian.pageobjects.binder.PostInjectionProcessor
-