On Sun, Apr 4, 2010 at 4:41 AM, rod <[email protected]> wrote:

> if ( dbType.equals("mysql") ) {
>  bind( Database.class ).to( MySQLDatabase.class );
> }
>
> Is there a better way?
>

That looks reasonable to me! If the dbType is invalid, you can use
Binder.addError() to report the error.

Bob

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to