Annotation Interface EnableRetry
@Target(TYPE)
@Retention(RUNTIME)
@EnableAspectJAutoProxy(proxyTargetClass=false)
@Import(RetryConfiguration.class)
@Documented
public @interface EnableRetry
Global enabler for
@Retryable
annotations in Spring beans. If this is
declared on any @Configuration
in the context then beans that have
retryable methods will be proxied and the retry handled according to the metadata in
the annotations.- Since:
- 2.0
- Author:
- Dave Syer
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Indicate whether subclass-based (CGLIB) proxies are to be created as opposed to standard Java interface-based proxies.
-
Element Details
-
proxyTargetClass
boolean proxyTargetClassIndicate whether subclass-based (CGLIB) proxies are to be created as opposed to standard Java interface-based proxies. The default isfalse
.- Returns:
- whether to proxy or not to proxy the class
- Default:
- false
-