Annotation Type ImplementsLocationStrategy


@Retention(RUNTIME) @Target(ANNOTATION_TYPE) public @interface ImplementsLocationStrategy

Enables to introduce new annotations of FindBy type with its own location strategy.

E.g.: framework specific location strategies, extended grammars for well-known strategies, etc.

Usage:

 @Retention(RetentionPolicy.RUNTIME)
 @Target(ElementType.FIELD)
 @ImplementsLocationStrategy(by = XYZLocationStrategy.class)
 public @interface FindByXYZ {
     String value();
 }
 
 public static class XYZLocationStrategy implements LocationStrategy {
     public By fromAnnotation(Annotation annotation) {
         return ...;
     }
 }
 
Author:
Lukas Fryc
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description