Package org.xwiki.extension
Interface ExtensionContext
-
@Role public interface ExtensionContext
Manipulate extension specific contextual informations.- Since:
- 12.10
- Version:
- $Id: 755c035ff638f1fa516633366ef516130bb3f152 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Optional<ExtensionSession>
getExtensionSession()
void
popSession()
Decrement by 1 the session level and destroy the current session when reaching the first level.ExtensionSession
pushSession()
Increment by 1 the session level and create or return the session associated with the current thread.
-
-
-
Method Detail
-
pushSession
ExtensionSession pushSession()
Increment by 1 the session level and create or return the session associated with the current thread.- Returns:
- the current session
-
popSession
void popSession()
Decrement by 1 the session level and destroy the current session when reaching the first level.
-
getExtensionSession
default Optional<ExtensionSession> getExtensionSession()
- Returns:
- the current
ExtensionSession
- Since:
- 14.7RC1, 14.4.4, 13.10.9
-
-