org.pietschy.command.delegate
Class DelegateMediatorEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.pietschy.command.delegate.DelegateMediatorEvent
All Implemented Interfaces:
java.io.Serializable

public class DelegateMediatorEvent
extends java.util.EventObject

This event is fired whenever a DelegateMediators current container list changes. The getExcecutor(String) method can be used to find most appropriate executor.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DelegateMediatorEvent(DelegateMediator source, DelegateContainer[] containers)
           
 
Method Summary
 DelegateContainer[] getContainers()
           
 ActionCommandExecutor getExcecutor(java.lang.String id)
          Searches the container hierarchy and gets the first executor it finds.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DelegateMediatorEvent

public DelegateMediatorEvent(DelegateMediator source,
                             DelegateContainer[] containers)
Method Detail

getContainers

public DelegateContainer[] getContainers()

getExcecutor

public ActionCommandExecutor getExcecutor(java.lang.String id)
Searches the container hierarchy and gets the first executor it finds.

Parameters:
id - the id to search for.
Returns:
the first executor in the container hierarchy or null if non exists.