Package org.xwiki.component.namespace
Interface NamespaceContextExecutor
-
@Role public interface NamespaceContextExecutor
Allow executing some code in the context of the specified namespace.- Since:
- 10.6RC1, 10.5, 9.11.6
- Version:
- $Id: f1fd4a5a79118fb2bad43572d62833d19f70e0ad $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <V> V
execute(Namespace namespace, Callable<V> callable)
Execute the passedCallable
in the context of the specified namespace.
-
-
-
Method Detail
-
execute
<V> V execute(Namespace namespace, Callable<V> callable) throws Exception
Execute the passedCallable
in the context of the specified namespace.- Type Parameters:
V
- the result type of methodcall
- Parameters:
namespace
- the namespace to usecallable
- the task to execute- Returns:
- computed result
- Throws:
Exception
- if unable to compute a result
-
-