|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.manipulator.spi.AbsBindingModule
public abstract class AbsBindingModule
All provided Module
s have to inherit from this class.
It provides a simple to use DSL to express annotation bindings.
Nested Class Summary | |
---|---|
class |
AbsBindingModule.AnnotationBindingBuilder
DSL helper class. |
class |
AbsBindingModule.ConditionalBindingBuilder
|
Constructor Summary | |
---|---|
AbsBindingModule()
|
Method Summary | |
---|---|
protected AbsBindingModule.AnnotationBindingBuilder |
bind(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Initiate an annotation binding. |
java.util.Iterator<Binding> |
iterator()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.felix.ipojo.manipulator.spi.Module |
---|
configure |
Constructor Detail |
---|
public AbsBindingModule()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |