I am trying to use RequestFactory with HibernateSearch. I would like to have one RequestFactory method that handles all search requests for all Proxy types which I ideally was hoping would be something like this...
public interface MyFactory extends RequestFactory { .... public interface MyRequestContext extends RequestContext { *Request<BaseProxy> doSearch(Class c, String searchTerm);//?? Not possible - but what can I do here ??* ... The pseudo code for the actual search would be BaseProxy result = doHibernateSearch(searchTerm, c).uniqueResult(); If I really have to, I could pass the full path to "Class c" and do a Class.forName() on the server side, but even so, how do a return the BaseProxy to the client? If the answer is that its impossible, how do I work around it? I dont want to have to have a doSearch(String searchTerm) for every domain type. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/hLfm03P-PiUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.