Changed ErrorHandler so that it's now safe to cache a reference to the ErrorHandler that can be used at both config time and runtime. Previously some classes needed to get the errorHandler via the Injector, since the errorHandler changed during construction.

New OptionalBindingTest.

git-svn-id: https://google-guice.googlecode.com/svn/trunk@445 d779f126-a31b-0410-b53b-1d3aecad763e
9 files changed