Package org.xwiki.extension
Interface ExtensionSession
-
public interface ExtensionSession
A short lived container used to store extensions manipulations related data which can be disposed.Any entry value implementing
Closeable
will be called when the session is destroyed.- Since:
- 12.10
- Version:
- $Id: 566c01b53e7fd86e7768e9355abfee8ca02d0d5d $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
get(String key)
void
set(String key, Object value)
-
-
-
Method Detail
-
set
void set(String key, Object value)
- Parameters:
key
- the key associated to the session entryvalue
- the value
-
get
<T> T get(String key)
- Type Parameters:
T
- the type of value associated with the passed key- Parameters:
key
- the key associated to the session entry- Returns:
- the value associated to the passed key
-
-