On 2/26/07, Bob Lee <[EMAIL PROTECTED]> wrote:
bind(Session.class) .annotatedWith(Secure.class) .to(FailoverSessionDelegator.class); Then apply "@Inject @Secure" wherever you want a secure Session. You can obviously reuse the @Secure annotation elsewhere, too.
If I were to really implement this, I would probably make the secure implementation the default and bind the insecure implementation to @Insecure. Bob