Annotation Interface WebSocketScope
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Documented
@Scope("websocket")
public @interface WebSocketScope
@WebSocketScope
is a specialization of @Scope
for a
component whose lifecycle is bound to the current WebSocket lifecycle.
Specifically, @WebSocketScope
is a composed annotation that
acts as a shortcut for @Scope("websocket")
with the default
proxyMode()
set to TARGET_CLASS
.
@WebSocketScope
may be used as a meta-annotation to create custom
composed annotations.
- Since:
- 7.0
- Author:
- Juergen Hoeller
- See Also:
-
Optional Element Summary
Optional Elements
-
Element Details
-
proxyMode
Alias forScope.proxyMode()
.Defaults to
ScopedProxyMode.TARGET_CLASS
.- Default:
TARGET_CLASS
-