|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BindingPublisher
Publisher of Binding
s to interested BindingSubscriber
s.
Method Summary | ||
---|---|---|
|
contains(com.google.inject.Binding<T> binding)
Determines whether or not the given Binding belongs to this publisher. |
|
|
subscribe(com.google.inject.TypeLiteral<T> type,
BindingSubscriber subscriber)
Subscribes the given BindingSubscriber to receive Binding s of the given type. |
|
|
unsubscribe(com.google.inject.TypeLiteral<T> type,
BindingSubscriber subscriber)
Stops the given BindingSubscriber from receiving Binding s of the given type. |
Method Detail |
---|
<T> void subscribe(com.google.inject.TypeLiteral<T> type, BindingSubscriber subscriber)
BindingSubscriber
to receive Binding
s of the given type.
type
- The binding typesubscriber
- The subscriber<T> boolean contains(com.google.inject.Binding<T> binding)
Binding
belongs to this publisher.
binding
- The binding
true
if the binding belongs to this publisher; otherwise false
<T> void unsubscribe(com.google.inject.TypeLiteral<T> type, BindingSubscriber subscriber)
BindingSubscriber
from receiving Binding
s of the given type.
type
- The binding typesubscriber
- The subscriber
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |