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.


Method Summary
 LinkedBindingBuilder<T> annotatedWith(Annotation annotation)
          Specifies an annotation value for this binding.
 LinkedBindingBuilder<T> annotatedWith(Class<? extends 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(Class<? extends Annotation> annotationType)
Specifies an annotation type for this binding.


annotatedWith

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



Copyright 2007 Google Inc. All Rights Reserved.