Annotation Type Default


@Target({TYPE,FIELD,METHOD,PARAMETER,CONSTRUCTOR})
@Retention(RUNTIME)
@Documented
public @interface Default
Indicates that the class member has some default meaning.

The target parsing logic may vary. One of the use-cases is service with several methods which are selected for invocation at runtime by some condition. The method with this Default annotation may mean a fallback option when no one other method meets condition.

Since:
5.0
Author:
Artem Bilan