@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented @Scope(value="application") public @interface 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.
RequestScope
,
SessionScope
,
Scope
,
WebApplicationContext.SCOPE_APPLICATION
,
ServletContextScope
,
Component
,
Bean
Modifier and Type | Optional Element and Description |
---|---|
ScopedProxyMode |
proxyMode
Alias for
Scope.proxyMode() . |
@AliasFor(annotation=Scope.class) public abstract ScopedProxyMode proxyMode
Scope.proxyMode()
.
Defaults to ScopedProxyMode.TARGET_CLASS
.