Review Board 1.5.4

Change getResourceAsStream() to doWithResource()

Updated 2 years ago

Alex Boisvert Reviewers
273 dchenbecker, dpp, marius, charles, joni, atsuhiko, jorge, naftoli, kris, indrajit, alexb
None LiftWeb-archive
As discussed here:
http://groups.google.com/group/liftweb/browse_thread/thread/a8b39ce2f003a912

Change: LiftRules.getResourceAsStream(name: String): Box[InputStream]
To: LiftRules.doWithResource[T](name: String)(f: InputStream => T): Box[T].

I've removed LiftRules.finder() which is essentially a duplicate of the new doWithResource() or the existing getResource().
I've also removed the Applier[T] trait that was introduced in the preceding change and no longer used.

I'll send breakage notifications once I've got the OK on these changes.
Test suite + sample application locally.
Ship it!
Posted 2 years ago (January 6th, 2010, 12:13 p.m.)
Looks good to me!
Ship it!
Posted 2 years ago (January 6th, 2010, 7:51 p.m.)
Looks fine.
Ship it!
Posted 2 years ago (January 8th, 2010, 4:31 p.m.)
Ship it!