com.taursys.xml.event
Class TemplateInputDispatcher

java.lang.Object
  extended bycom.taursys.xml.event.Dispatcher
      extended bycom.taursys.xml.event.InputDispatcher
          extended bycom.taursys.xml.event.TemplateInputDispatcher

public class TemplateInputDispatcher
extends InputDispatcher

TemplateInputDispatcher is a Dispatcher for InputEvents for Templates

Version:
1.0
Author:
Marty Phelan

Field Summary
 
Fields inherited from class com.taursys.xml.event.Dispatcher
components, map
 
Constructor Summary
TemplateInputDispatcher(Template template)
          Constructs a new TemplateInputDispatcher
 
Method Summary
 void dispatch(java.util.Map map)
          Dispatches an Event to each registered component with the given key/value Map.
protected  int getParentIndex()
          Overrides to return this TemplateDispatcher's index
 
Methods inherited from class com.taursys.xml.event.InputDispatcher
dispatchToComponent
 
Methods inherited from class com.taursys.xml.event.Dispatcher
addNotify, dispatch, dispatch, getIndex, getParameter, getParentDispatcher, incrementIndex, removeNotify, resetIndex, setParentDispatcher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateInputDispatcher

public TemplateInputDispatcher(Template template)
Constructs a new TemplateInputDispatcher

Method Detail

dispatch

public void dispatch(java.util.Map map)
              throws java.lang.Exception
Dispatches an Event to each registered component with the given key/value Map. This method invokes the dispatchToComponent for each registered component.

Overrides:
dispatch in class Dispatcher
Parameters:
map - a Map containing message key/values for dispatching
Throws:
java.lang.Exception

getParentIndex

protected int getParentIndex()
Overrides to return this TemplateDispatcher's index

Overrides:
getParentIndex in class Dispatcher
Returns:
the parent index value, else this Dispatcher's index value if no parent.


Copyright © 2007 Martin T Phelan. All Rights Reserved.