That is the way to get them.  You can also get the entity from the 
MessageContext (getResponseEntity()).  The method to invoke though will 
come from the SearchResult.  If you search on SearchResult.getMethod() 
you'll see we use it in several handlers.  That shouldn't change going 
forward.

-- Jesse





From:   fishrick <[email protected]>
To:     [email protected]
Date:   11/19/2010 01:37 PM
Subject:        What is the best way, in a handler, to get the Entity and 
method that is going to be invoked?




We have a handler where we want to get the Entity and the method that is
going to be invoked. We found the SearchResult attribute and can get the
Entity and method that is going to be invoked from that. But we are a 
little
leary of using an attribute since we don't know if that will change in the
future...
-- 
View this message in context: 
http://apache-wink-users.3471013.n2.nabble.com/What-is-the-best-way-in-a-handler-to-get-the-Entity-and-method-that-is-going-to-be-invoked-tp5756400p5756400.html

Sent from the Apache Wink Users mailing list archive at Nabble.com.

Reply via email to