LiftRules.unloadHooks problem

48 views
Skip to first unread message

Ewan

unread,
May 23, 2009, 2:31:06 AM5/23/09
to Lift
After banging my head trying to get Jetty to shutdown cleanly having
been playing with actors I came across this entry in the wiki
http://wiki.liftweb.net/index.php/FAQ#How_do_I_execute_code_when_my_application_is_unloaded.3F
which suggests adding your own function to LiftRules.unloadHooks
except LiftRules.unloadHooks += myUnloader _ does not compile due to
"reassignment to val" but LiftRules.unloadHooks.append(myUnloader)
does. Has my lack of Scala experience got the better of me again or
has the api changed since the wiki entry was added?

-- Ewan

David Pollak

unread,
May 23, 2009, 10:14:28 AM5/23/09
to lif...@googlegroups.com

Yeah, the API changed pretty radically in November and December of last year.

We've had a bunch of ill-fated attempts to find a wiki gardener... someone who will go through the wiki, find stuff that needs changing and make a list or enter tickets into our GitHub ticket system.  With a list of needed changes, there are a fair number of us who can make those changes.
 


-- Ewan





--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp
Reply all
Reply to author
Forward
0 new messages