org.inria.ns.reflex.processor.exp
Class InvokeAction.Async

java.lang.Object
  extended by org.inria.ns.reflex.processor.core.AbstractAction
      extended by org.inria.ns.reflex.processor.core.AbstractSetAction
          extended by org.inria.ns.reflex.processor.exp.InvokeAction
              extended by org.inria.ns.reflex.processor.exp.InvokeAction.Async
All Implemented Interfaces:
Computable, Executable, Presentable, NamespaceContextFactory
Enclosing class:
InvokeAction

public static class InvokeAction.Async
extends InvokeAction

An asynchrone invoker.

Author:
ppoulard

Nested Class Summary
 
Nested classes/interfaces inherited from class org.inria.ns.reflex.processor.exp.InvokeAction
InvokeAction.Async
 
Nested classes/interfaces inherited from class org.inria.ns.reflex.processor.core.AbstractAction
AbstractAction.ParameterAdapter, AbstractAction.UselessAction
 
Field Summary
 
Fields inherited from class org.inria.ns.reflex.processor.core.AbstractSetAction
NO_VALUE
 
Fields inherited from class org.inria.ns.reflex.processor.core.AbstractAction
actions, parent, processorInstance
 
Constructor Summary
InvokeAction.Async(Expression processor, Element element, AbstractAction parent)
          Creates an asynchrone instance of InvokeAction.
 
Method Summary
 Object getComputedValue(DataSet dataSet)
          Return immediately after starting a new thread for the processor to invoke.
 
Methods inherited from class org.inria.ns.reflex.processor.exp.InvokeAction
addAction, unmarshal
 
Methods inherited from class org.inria.ns.reflex.processor.core.AbstractSetAction
addProperty, getComputedName, getName, getValue, runAction, scope, unmarshalScope
 
Methods inherited from class org.inria.ns.reflex.processor.core.AbstractAction
addFallbackAction, createContext, getCanonicalPath, getFallbackAction, getLocalFallbackAction, getLogger, getNamespaceContext, getNode, getParent, recover, recover, removeFallbackAction, reorganize, run, runActions, toPrettyString, toPrettyString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvokeAction.Async

public InvokeAction.Async(Expression processor,
                          Element element,
                          AbstractAction parent)
                   throws XMLException
Creates an asynchrone instance of InvokeAction.

Parameters:
processor - The processor to invoke, as an Expression.
sync - Indicates whether the processor to run must be synchronised or not with the caller.
node - The node from which the action has been unmarshalled. Used for namespace prefix resolution when performing XPath expressions.
parent - The action depending from.
Throws:
XMLException
Method Detail

getComputedValue

public Object getComputedValue(DataSet dataSet)
                        throws ExecutionException,
                               XPathException
Return immediately after starting a new thread for the processor to invoke.

Specified by:
getComputedValue in interface Computable
Overrides:
getComputedValue in class InvokeAction
Parameters:
dataSet - The data set in use.
Returns:
null
Throws:
ExecutionException - If the computation can't be performed.
XPathException