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.
Looks good to me!
Looks fine.
