org.pietschy.command.delegate

Class DelegateMediatorEvent


public class DelegateMediatorEvent
extends EventObject

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

Constructor Summary

DelegateMediatorEvent(DelegateMediator source, DelegateContainer[] containers)

Method Summary

DelegateContainer[]
getContainers()
ActionCommandExecutor
getExcecutor(String id)
Searches the container hierarchy and gets the first executor it finds.

Constructor Details

DelegateMediatorEvent

public DelegateMediatorEvent(DelegateMediator source,
                             DelegateContainer[] containers)

Method Details

getContainers

public DelegateContainer[] getContainers()

getExcecutor

public ActionCommandExecutor getExcecutor(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.