org.elasticsearch.util.inject.internal
Class ExposureBuilder<T>

java.lang.Object
  extended by org.elasticsearch.util.inject.internal.ExposureBuilder<T>
All Implemented Interfaces:
AnnotatedElementBuilder

public class ExposureBuilder<T>
extends java.lang.Object
implements AnnotatedElementBuilder

For private binder's expose() method.


Constructor Summary
ExposureBuilder(Binder binder, java.lang.Object source, Key<T> key)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExposureBuilder

public ExposureBuilder(Binder binder,
                       java.lang.Object source,
                       Key<T> key)
Method Detail

checkNotAnnotated

protected void checkNotAnnotated()

annotatedWith

public void annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from interface: AnnotatedElementBuilder
See the EDSL examples at Binder.

Specified by:
annotatedWith in interface AnnotatedElementBuilder

annotatedWith

public void annotatedWith(java.lang.annotation.Annotation annotation)
Description copied from interface: AnnotatedElementBuilder
See the EDSL examples at Binder.

Specified by:
annotatedWith in interface AnnotatedElementBuilder

getKey

public Key<?> getKey()

getSource

public java.lang.Object getSource()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object