public class AbsBindingModule.AnnotationBindingBuilder
extends java.lang.Object
Constructor and Description |
---|
AnnotationBindingBuilder(java.util.List<Binding> registry,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) |
Modifier and Type | Method and Description |
---|---|
void |
to(AnnotationVisitorFactory factory)
Complete the annotation binding with the
AnnotationVisitorFactory to be executed
when the annotation is found. |
AbsBindingModule.ConditionalBindingBuilder |
when(Predicate predicate)
Declares a
Predicate that will add a condition to the annotation binding. |
public AnnotationBindingBuilder(java.util.List<Binding> registry, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
public AbsBindingModule.ConditionalBindingBuilder when(Predicate predicate)
Predicate
that will add a condition to the annotation binding.predicate
- the predicate to usePredicates
public void to(AnnotationVisitorFactory factory)
AnnotationVisitorFactory
to be executed
when the annotation is found.factory
- to be executed when the annotation is found.Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.