Annotation Interface 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.ScopedProxyModeAlias forScope.proxyMode().
-
Element Details
-
proxyMode
@AliasFor(annotation=org.springframework.context.annotation.Scope.class) org.springframework.context.annotation.ScopedProxyMode proxyModeAlias forScope.proxyMode().- Returns:
- proxy mode
- See Also:
- Default:
TARGET_CLASS
-