Annotation Interface Proxyable
Common annotation for suggesting a specific proxy type for a
@Bean
method or @Component class,
overriding a globally configured default.
Only actually applying in case of a bean actually getting auto-proxied in the first place. Actual auto-proxying is dependent on external configuration.
- Since:
- 7.0
- Author:
- Juergen Hoeller
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<?>[]Suggest a JDK dynamic proxy with specific interfaces to expose, overriding a globally configured default.Suggest a specific proxy type, eitherProxyType.INTERFACESfor a JDK dynamic proxy orProxyType.TARGET_CLASSfor a CGLIB proxy, overriding a globally configured default.
-
Element Details
-
value
ProxyType valueSuggest a specific proxy type, eitherProxyType.INTERFACESfor a JDK dynamic proxy orProxyType.TARGET_CLASSfor a CGLIB proxy, overriding a globally configured default.- Default:
DEFAULT
-
interfaces
Class<?>[] interfacesSuggest a JDK dynamic proxy with specific interfaces to expose, overriding a globally configured default.Only taken into account if
value()is notProxyType.TARGET_CLASS.- Default:
{}
-