|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elasticsearch.util.inject.internal.BindingImpl<T>
public abstract class BindingImpl<T>
| Constructor Summary | |
|---|---|
|
BindingImpl(Injector injector,
Key<T> key,
java.lang.Object source,
InternalFactory<? extends T> internalFactory,
Scoping scoping)
|
protected |
BindingImpl(java.lang.Object source,
Key<T> key,
Scoping scoping)
|
| Method Summary | ||
|---|---|---|
|
acceptScopingVisitor(BindingScopingVisitor<V> visitor)
Accepts a scoping visitor. |
|
|
acceptVisitor(ElementVisitor<V> visitor)
Accepts an element visitor. |
|
Injector |
getInjector()
|
|
InternalFactory<? extends T> |
getInternalFactory()
|
|
Key<T> |
getKey()
Returns the key for this binding. |
|
Provider<T> |
getProvider()
Returns the scoped provider guice uses to fulfill requests for this binding. |
|
Scoping |
getScoping()
|
|
java.lang.Object |
getSource()
Returns an arbitrary object containing information about the "place" where this element was configured. |
|
boolean |
isConstant()
Is this a constant binding? This returns true for constant bindings as well as toInstance() bindings. |
|
java.lang.String |
toString()
|
|
protected BindingImpl<T> |
withKey(Key<T> key)
|
|
protected BindingImpl<T> |
withScoping(Scoping scoping)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.elasticsearch.util.inject.Binding |
|---|
acceptTargetVisitor |
| Methods inherited from interface org.elasticsearch.util.inject.spi.Element |
|---|
applyTo |
| Constructor Detail |
|---|
public BindingImpl(Injector injector,
Key<T> key,
java.lang.Object source,
InternalFactory<? extends T> internalFactory,
Scoping scoping)
protected BindingImpl(java.lang.Object source,
Key<T> key,
Scoping scoping)
| Method Detail |
|---|
public Key<T> getKey()
Binding
getKey in interface Binding<T>public java.lang.Object getSource()
ElementTools might specially handle types they know about; StackTraceElement is a good
example. Tools should simply call toString() on the source object if the type is
unfamiliar.
getSource in interface Elementpublic Provider<T> getProvider()
Binding
getProvider in interface Binding<T>public InternalFactory<? extends T> getInternalFactory()
public Scoping getScoping()
public boolean isConstant()
public <V> V acceptVisitor(ElementVisitor<V> visitor)
Element
acceptVisitor in interface Elementvisitor - to call back onpublic <V> V acceptScopingVisitor(BindingScopingVisitor<V> visitor)
Binding
acceptScopingVisitor in interface Binding<T>visitor - to call back onprotected BindingImpl<T> withScoping(Scoping scoping)
protected BindingImpl<T> withKey(Key<T> key)
public java.lang.String toString()
toString in class java.lang.Objectpublic Injector getInjector()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||