@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE,ANNOTATION_TYPE})
@Around
@Type(value=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
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.Class<?> |
api
Used to specify the API to lookup fallbacks for.
|
public abstract java.lang.Class<?> api
Fallback