It's an ordered configuration; it's executed in the order specified.
In the event that the constraints don't provide a clear ordering (as in your example), the ordering is undetermined; I wouldn't count on any consistent ordering.

Robert

On Mar 20, 2009, at 3/209:07 AM , Angelo Chen wrote:


Hi,

what is the execution order of dispatchers, last in, first out or first in, last out? following are my two dispatchers, which will be called first and
why? thanks.

public static void
contributeMasterDispatcher(OrderedConfiguration<Dispatcher> configuration,

@InjectService("MyDispatcher") MyDispatcher myDispatcher) {
configuration.add("MyDispatcher", myDispatcher, "before:PageRender");
  }

  public static void
contributeMasterDispatcher(OrderedConfiguration<Dispatcher> configuration,

@InjectService("HisDispatcher") HisDispatcher hisDispatcher)
      configuration.add("HisDispatcher", hisDispatcher,
"before:PageRender");
  }


--
View this message in context: 
http://www.nabble.com/T5%3A-ordering-of-Dispatchers-tp22620974p22620974.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to