public abstract class AbsBindingModule extends Object implements Module
Module
s have to inherit from this class.
It provides a simple to use DSL to express annotation bindings.Modifier and Type | Class and Description |
---|---|
class |
AbsBindingModule.AnnotationBindingBuilder
DSL helper class.
|
class |
AbsBindingModule.ConditionalBindingBuilder |
class |
AbsBindingModule.HandlerBindingBuilder |
class |
AbsBindingModule.StereotypeBindingBuilder |
Constructor and Description |
---|
AbsBindingModule() |
Modifier and Type | Method and Description |
---|---|
protected AbsBindingModule.AnnotationBindingBuilder |
bind(Class<? extends Annotation> annotationType)
Initiate an annotation binding.
|
protected AbsBindingModule.HandlerBindingBuilder |
bindHandlerBinding(Class<? extends Annotation> annotationType) |
protected void |
bindIgnore(Class<? extends Annotation> annotationType) |
protected AbsBindingModule.StereotypeBindingBuilder |
bindStereotype(Class<? extends Annotation> annotationType) |
protected abstract void |
configure()
Configure the bindings provided by this module.
|
Iterator<Binding> |
iterator() |
void |
load()
Load the bindings provided by this module (only once).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public void load()
Module
protected abstract void configure()
protected AbsBindingModule.AnnotationBindingBuilder bind(Class<? extends Annotation> annotationType)
AnnotationVisitorFactory factory = new CompositeVisitorFactory(); bind(Composite.class).to(factory); bind(Composite.class).when(.. some condition ..) .to(factory);
annotationType
- the annotation that will be bound to the AnnotationVisitorFactory
protected AbsBindingModule.StereotypeBindingBuilder bindStereotype(Class<? extends Annotation> annotationType)
protected AbsBindingModule.HandlerBindingBuilder bindHandlerBinding(Class<? extends Annotation> annotationType)
protected void bindIgnore(Class<? extends Annotation> annotationType)
Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.