Annotation Type 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 implementsLocationStrategy{ publicByfromAnnotation(Annotationannotation) { return ...; } }
- Author:
- Lukas Fryc
- See Also:
-
Required Element Summary
Required Elements
-
Element Details
-
value
Class<? extends LocationStrategy> value
-