public abstract class AbsBindingModule extends java.lang.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(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Initiate an annotation binding.
|
protected AbsBindingModule.HandlerBindingBuilder |
bindHandlerBinding(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) |
protected void |
bindIgnore(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) |
protected AbsBindingModule.StereotypeBindingBuilder |
bindStereotype(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) |
protected abstract void |
configure()
Configure the bindings provided by this module.
|
java.util.Iterator<Binding> |
iterator() |
void |
load()
Load the bindings provided by this module (only once).
|
public void load()
Module
protected abstract void configure()
public java.util.Iterator<Binding> iterator()
iterator
in interface java.lang.Iterable<Binding>
protected AbsBindingModule.AnnotationBindingBuilder bind(java.lang.Class<? extends java.lang.annotation.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(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
protected AbsBindingModule.HandlerBindingBuilder bindHandlerBinding(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
protected void bindIgnore(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.