@Target([AnnotationTarget.CLASS, AnnotationTarget.FILE, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER]) @Scope("application") class ApplicationScope
@ApplicationScope
is a specialization of Scope for a component whose lifecycle is bound to the current web application.
Specifically, @ApplicationScope
is a composed annotation that acts as a shortcut for @Scope("application")
with the default #proxyMode
set to TARGET_CLASS
.
@ApplicationScope
may be used as a meta-annotation to create custom composed annotations.
Author
Sam Brannen
Since
4.3
See Also
RequestScopeSessionScopeorg.springframework.context.annotation.Scopeorg.springframework.web.context.WebApplicationContext#SCOPE_APPLICATIONorg.springframework.web.context.support.ServletContextScopeorg.springframework.stereotype.Componentorg.springframework.context.annotation.Bean
ApplicationScope(proxyMode: ScopedProxyMode)
Specifically,
|
val proxyMode: ScopedProxyMode
Alias for Defaults to |