Package org.xwiki.extension
Interface ExtensionSession
-
public interface ExtensionSessionA short lived container used to store extensions manipulations related data which can be disposed.Any entry value implementing
Closeablewill 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> Tget(String key)voidset(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
-
-