public class AbsBindingModule.AnnotationBindingBuilder extends Object
Constructor and Description |
---|
AnnotationBindingBuilder(List<Binding> registry,
Class<? extends 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(List<Binding> registry, Class<? extends 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–2023 The Apache Software Foundation. All rights reserved.