Annotation Type RefreshScope
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Scope("refresh")
@Documented
public @interface RefreshScope
Convenience annotation to put a
@Bean definition in
refresh scope.
Beans annotated this way can be refreshed at runtime and any components that are using
them will get a new instance on the next method call, fully initialized and injected
with all dependencies.- Author:
- Dave Syer
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionorg.springframework.context.annotation.ScopedProxyMode
-
Element Details
-
proxyMode
org.springframework.context.annotation.ScopedProxyMode proxyMode- Returns:
- proxy mode
- See Also:
-
Scope.proxyMode()
- Default:
- TARGET_CLASS
-