Refactor Mapper logging for Java 5 and 6
Updated 2 years, 4 months ago
| Derek Chen-Becker | Reviewers | ||
| wip-dcb-issue-67 | |||
| 67 | dchenbecker, dpp, marius, charles, heiko, joni, atsuhiko, jorge, naftoli, kris | ||
| None | LiftWeb-archive | ||
Refactor the Mapper Logging to use dynamic proxies for the logging statements so that we can properly implement the JDBC interfaces at runtime. This is needed so that we can support both JAva 5 and Java 6 without needing two source trees.
On my local test app.
Review request changed
Updated 2 years, 4 months ago (September 30th, 2009, 3:09 a.m.)
- changed from to wip-dcb-issue-67
-
- added 67
Added the issue and branch
Looks good to me. Once it's working, we might want to refactor it so there's always a call that passes a statement in and only puts a wrapper around it in debug mode.
Posted 2 years, 4 months ago (September 30th, 2009, 6:15 p.m.)
Derek, why did you choose reflection? Last time I checked proxies (InvocationHandlers) tend to be quite slow comparing with actual method invocation. Even if reflection improved considerably I'd still stay away of it of there is a way using language composition to achieve the same thing. Br's, Marius
