org.apache.commons.inject.api.bind
Interface IAnnotatedBindingBuilder<T>
- All Superinterfaces:
- ILinkedBindingBuilder<T>, IScopedBindingBuilder<T>
- All Known Implementing Classes:
- DefaultBindingBuilder
public interface IAnnotatedBindingBuilder<T>
- extends ILinkedBindingBuilder<T>
A binding builder, which allows to specify annotations, or annotation
types as constraints, depending on which POJO's may, or may not be
injected.
annotatedWith
ILinkedBindingBuilder<T> annotatedWith(Annotation pAnnotation)
- Specifies, that the binding can only be used for injection, if a
field is annotated with an
Annotation
, that equals the
given. In general, this means that the annotation type, and all
attributes are equal.
- See Also:
Annotation.equals(Object)
annotatedWith
ILinkedBindingBuilder<T> annotatedWith(Class<? extends Annotation> pAnnotation)
- Specifies, that the binding can only be used for injection, if a
field is annotated with an
Annotation
of the given type.
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.