public class ExposureBuilder<T> extends java.lang.Object implements AnnotatedElementBuilder
Modifier and Type | Field and Description |
---|---|
private Binder |
binder |
private Key<T> |
key |
private java.lang.Object |
source |
Constructor and Description |
---|
ExposureBuilder(Binder binder,
java.lang.Object source,
Key<T> key) |
Modifier and Type | Method and Description |
---|---|
void |
annotatedWith(java.lang.annotation.Annotation annotation)
See the EDSL examples at
Binder . |
void |
annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
See the EDSL examples at
Binder . |
protected void |
checkNotAnnotated() |
Key<?> |
getKey() |
java.lang.Object |
getSource() |
java.lang.String |
toString() |
private final Binder binder
private final java.lang.Object source
protected void checkNotAnnotated()
public void annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
AnnotatedElementBuilder
Binder
.annotatedWith
in interface AnnotatedElementBuilder
public void annotatedWith(java.lang.annotation.Annotation annotation)
AnnotatedElementBuilder
Binder
.annotatedWith
in interface AnnotatedElementBuilder
public Key<?> getKey()
public java.lang.Object getSource()
public java.lang.String toString()
toString
in class java.lang.Object