Interface InterceptorContext.TransientStorage
-
- All Known Implementing Classes:
DefaultTransientStorage
- Enclosing interface:
- InterceptorContext
public static interface InterceptorContext.TransientStorageRepresents a transient storage for a singleInterceptorContext. It might be used to share attributes among differentInterceptors invoked during singleModelServiceoperation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(java.lang.Object key)Allows you to check if a given key is present in the storage.java.lang.Objectget(java.lang.Object key)Get value from the storage.voidput(java.lang.Object key, java.lang.Object value)Put value in the storagevoidremove(java.lang.Object key)Removes value assigned with a given key.
-
-
-
Method Detail
-
get
java.lang.Object get(java.lang.Object key)
Get value from the storage.- Parameters:
key- attribute's key- Returns:
- value assigned with the key or null if there is no value
- Throws:
java.lang.NullPointerException- if key is null
-
put
void put(java.lang.Object key, java.lang.Object value)Put value in the storage- Parameters:
key- attribute's keyvalue- value to be store- Throws:
java.lang.NullPointerException- if key or value is null
-
contains
boolean contains(java.lang.Object key)
Allows you to check if a given key is present in the storage.- Parameters:
key- attribute's key- Returns:
- true if the key is present in the storage
- Throws:
java.lang.NullPointerException- if key is null
-
remove
void remove(java.lang.Object key)
Removes value assigned with a given key.- Parameters:
key- attribute's key- Throws:
java.lang.NullPointerException- if key is null
-
-