Package org.xwiki.context.concurrent
Interface ContextStore
-
@Role public interface ContextStore
Save and restore contextual data.- Since:
- 10.10RC1
- Version:
- $Id: c7203943458888f8f2fe9fe7ad0180650ad31ff8 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<String>
getSupportedEntries()
void
restore(Map<String,Serializable> contextStore)
Inject in the current context data found in the passed map.void
save(Map<String,Serializable> contextStore, Collection<String> entries)
Save only the passed context entries in the map.
-
-
-
Method Detail
-
getSupportedEntries
Collection<String> getSupportedEntries()
- Returns:
- the names of the context entries supported by the
ContextStore
-
save
void save(Map<String,Serializable> contextStore, Collection<String> entries)
Save only the passed context entries in the map.- Parameters:
contextStore
- the stored context dataentries
- the list of context entries to take into account
-
restore
void restore(Map<String,Serializable> contextStore)
Inject in the current context data found in the passed map.- Parameters:
contextStore
- the stored context data
-
-