spring-framework / org.springframework.web.context.annotation

Package org.springframework.web.context.annotation

Annotations

ApplicationScope

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.

RequestScope

class RequestScope

@RequestScope is a specialization of Scope for a component whose lifecycle is bound to the current web request.

Specifically, @RequestScope is a composed annotation that acts as a shortcut for @Scope("request") with the default #proxyMode set to TARGET_CLASS.

@RequestScope may be used as a meta-annotation to create custom composed annotations.

SessionScope

class SessionScope

@SessionScope is a specialization of Scope for a component whose lifecycle is bound to the current web session.

Specifically, @SessionScope is a composed annotation that acts as a shortcut for @Scope("session") with the default #proxyMode set to TARGET_CLASS.

@SessionScope may be used as a meta-annotation to create custom composed annotations.