public class ViewScope
extends java.lang.Object
implements org.springframework.beans.factory.config.Scope
view map
as spring Scope
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DESTRUCTION_CALLBACK_NAME_PREFIX
Constant identifying the
String prefixed to the name of a
destruction callback when it is stored in a view map . |
static java.lang.String |
SCOPE_VIEW
Scope identifier for view scope: "view".
|
Constructor and Description |
---|
ViewScope() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.String name,
org.springframework.beans.factory.ObjectFactory objectFactory) |
java.lang.String |
getConversationId() |
void |
registerDestructionCallback(java.lang.String name,
java.lang.Runnable callback) |
java.lang.Object |
remove(java.lang.String name) |
java.lang.Object |
resolveContextualObject(java.lang.String key) |
public static final java.lang.String SCOPE_VIEW
WebApplicationContext.SCOPE_SESSION
,
WebApplicationContext.SCOPE_REQUEST
,
Constant Field Valuespublic static final java.lang.String DESTRUCTION_CALLBACK_NAME_PREFIX
String
prefixed to the name of a
destruction callback when it is stored in a view map
.ServletRequestAttributes.DESTRUCTION_CALLBACK_NAME_PREFIX
public java.lang.Object get(java.lang.String name, org.springframework.beans.factory.ObjectFactory objectFactory)
get
in interface org.springframework.beans.factory.config.Scope
@Nullable public java.lang.Object remove(java.lang.String name)
remove
in interface org.springframework.beans.factory.config.Scope
@Nullable public java.lang.String getConversationId()
getConversationId
in interface org.springframework.beans.factory.config.Scope
public void registerDestructionCallback(java.lang.String name, java.lang.Runnable callback)
registerDestructionCallback
in interface org.springframework.beans.factory.config.Scope
@Nullable public java.lang.Object resolveContextualObject(java.lang.String key)
resolveContextualObject
in interface org.springframework.beans.factory.config.Scope