Annotation Type Recoverable


  • @Documented
    @Retention(RUNTIME)
    @Target({METHOD,TYPE,ANNOTATION_TYPE})
    @Around
    @Type(RecoveryInterceptor.class)
    public @interface Recoverable

    AOP around advice that can be applied to any type or method that requires Fallback handling.

    When applied to a type if an exception occurs this advice will attempt to resolve an implementation of the class that is annotated with Fallback

    Since:
    1.0
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<?> api
      Used to specify the API to lookup fallbacks for.
    • Element Detail

      • api

        java.lang.Class<?> api
        Used to specify the API to lookup fallbacks for. This is useful in cases where the fallback is not a direct subclass of the implementation.
        Returns:
        The API to lookup a fallback for
        Since:
        2.0.0
        See Also:
        Fallback
        Default:
        void.class