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 Detail

      • execute

        <V> V execute​(Namespace namespace,
                      Callable<V> callable)
               throws Exception
        Execute the passed Callable in the context of the specified namespace.
        Type Parameters:
        V - the result type of method call
        Parameters:
        namespace - the namespace to use
        callable - the task to execute
        Returns:
        computed result
        Throws:
        Exception - if unable to compute a result