What you described is the clean way.
Le 14 janv. 2013 21:51, "viiids" <[email protected]> a écrit :

> How do a i conditionally bind an object ? For example, i have to write a
> Provider of a WebContext which depending on a parameter in the input
> request will be constructed differently. The scope of this WebContext will
> be per request. One obvious solution is to inject the parameter to the
> provider and have an if else statement. I am looking for a cleaner solution
> than this.
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-guice" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-guice/-/d_pD6cfomPkJ.
> 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.
>

-- 
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