com.google.inject.binder
Interface AnnotatedBindingBuilder<T>

All Superinterfaces:
LinkedBindingBuilder<T>, ScopedBindingBuilder

public interface AnnotatedBindingBuilder<T>
extends LinkedBindingBuilder<T>

Specifies the annotation for a binding.

Author:
crazybob@google.com (Bob Lee)

Method Summary
 LinkedBindingBuilder<T> annotatedWith(java.lang.annotation.Annotation annotation)
          Specifies an annotation value for this binding.
 LinkedBindingBuilder<T> annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
          Specifies an annotation type for this binding.
 
Methods inherited from interface com.google.inject.binder.LinkedBindingBuilder
to, to, to, toInstance, toProvider, toProvider, toProvider
 
Methods inherited from interface com.google.inject.binder.ScopedBindingBuilder
asEagerSingleton, in, in
 

Method Detail

annotatedWith

LinkedBindingBuilder<T> annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Specifies an annotation type for this binding.


annotatedWith

LinkedBindingBuilder<T> annotatedWith(java.lang.annotation.Annotation annotation)
Specifies an annotation value for this binding.



Copyright © 2008. All Rights Reserved.