Why doesn't Lift create the mapping at startup using reflection ? It's not using reflection that's the problem, it's using reflection at runtime for every single snippet usage.
I may be over simplifying things, but if at startup Lift would go through all snippet classes and using reflection found all the methods kept all the mappings somewhere in memory i think it could work. Is this doable ? On 9 Fev, 17:01, Timothy Perrett <timo...@getintheloop.eu> wrote: > So you don't want to write any explicit mapping, and you don't want to use > reflection??? How would you propose Lift know what your asking for? > > Im afraid voodoo is not yet compatible with the JVM ;-) > > Cheers, Tim > > On 9 Feb 2010, at 16:54, Hugo Palma wrote: > > > > > I just readhttp://wiki.github.com/dpp/liftweb/about-snippetsand i > > have the following question: > > > So is really the only way to avoid having a reflection call every time > > you use a snippet to use a DispatchSnippet with a case statement for > > every method ? > > It's just that i don't really think that the case is a very clean way > > of doing things. Can be ok for a couple of methods but it can be > > really ugly with more than that. > > > So, is there any other way ? > > Thanks. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Lift" group. > > To post to this group, send email to lift...@googlegroups.com. > > To unsubscribe from this group, send email to > > liftweb+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/liftweb?hl=en. -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.