@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Scope(value="refresh") @Documented public @interface RefreshScope
@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.Modifier and Type | Optional Element and Description |
---|---|
org.springframework.context.annotation.ScopedProxyMode |
proxyMode |
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.