org.apache.commons.scxml.env
Class SimpleDispatcher

java.lang.Object
  extended by org.apache.commons.scxml.env.SimpleDispatcher
All Implemented Interfaces:
Serializable, EventDispatcher

public final class SimpleDispatcher
extends Object
implements EventDispatcher, Serializable

Trivial EventDispatcher implementation. No remote eventing.

See Also:
Serialized Form

Constructor Summary
SimpleDispatcher()
          Constructor.
 
Method Summary
 void cancel(String sendId)
          Cancel the specified send message.
 void send(String sendId, String target, String targetType, String event, Map params, Object hints, long delay, List externalNodes)
          Send this message to the target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDispatcher

public SimpleDispatcher()
Constructor.

Method Detail

cancel

public void cancel(String sendId)
Description copied from interface: EventDispatcher
Cancel the specified send message.

Specified by:
cancel in interface EventDispatcher
Parameters:
sendId - The ID of the send message to cancel
See Also:
EventDispatcher.cancel(String)

send

public void send(String sendId,
                 String target,
                 String targetType,
                 String event,
                 Map params,
                 Object hints,
                 long delay,
                 List externalNodes)
Description copied from interface: EventDispatcher
Send this message to the target.

Specified by:
send in interface EventDispatcher
Parameters:
sendId - The ID of the send message
target - An expression returning the target location of the event
targetType - The type of the Event I/O Processor that the event should be dispatched to
event - The type of event being generated.
params - A list of zero or more whitespace separated variable names to be included with the event.
hints - The data containing information which may be used by the implementing platform to configure the event processor
delay - The event is dispatched after the delay interval elapses
externalNodes - The list of external nodes associated with the <send> element.
See Also:
EventDispatcher.send(String,String,String,String,Map,Object,long,List)


Copyright © 2005-2008 The Apache Software Foundation. All Rights Reserved.