|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.inject.ExposedBindingImpl<T>
public class ExposedBindingImpl<T>
Constructor Summary | |
---|---|
ExposedBindingImpl(com.google.inject.InjectorImpl injector,
Object source,
com.google.inject.ExposedBindingImpl.Factory<T> factory)
|
Method Summary | ||
---|---|---|
|
acceptScopingVisitor(BindingScopingVisitor<V> visitor)
Accepts a scoping visitor. |
|
|
acceptTargetVisitor(BindingTargetVisitor<? super T,V> visitor)
Accepts a target visitor. |
|
|
acceptVisitor(ElementVisitor<V> visitor)
Accepts an element visitor. |
|
Key<T> |
getKey()
Returns the key for this binding. |
|
PrivateEnvironment |
getPrivateEnvironment()
|
|
Provider<T> |
getProvider()
Returns the scoped provider guice uses to fulfill requests for this binding. |
|
Scope |
getScope()
|
|
Object |
getSource()
Returns an arbitrary object containing information about the "place" where this element was configured. |
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExposedBindingImpl(com.google.inject.InjectorImpl injector, Object source, com.google.inject.ExposedBindingImpl.Factory<T> factory)
Method Detail |
---|
public <V> V acceptTargetVisitor(BindingTargetVisitor<? super T,V> visitor)
Binding
visitor
- to call back onpublic PrivateEnvironment getPrivateEnvironment()
public String toString()
public Key<T> getKey()
Binding
getKey
in interface Binding<T>
public Object getSource()
Element
Tools 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 Element
public Provider<T> getProvider()
Binding
getProvider
in interface Binding<T>
public Scope getScope()
public <V> V acceptVisitor(ElementVisitor<V> visitor)
Element
acceptVisitor
in interface Element
visitor
- to call back onpublic <V> V acceptScopingVisitor(BindingScopingVisitor<V> visitor)
Binding
acceptScopingVisitor
in interface Binding<T>
visitor
- to call back on
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |