public interface BindingPublisher
Binding
s to interested BindingSubscriber
s.Modifier and Type | Method and Description |
---|---|
<T> boolean |
contains(com.google.inject.Binding<T> binding)
Determines whether or not the given
Binding belongs to this publisher. |
<T> void |
subscribe(com.google.inject.TypeLiteral<T> type,
BindingSubscriber subscriber)
Subscribes the given
BindingSubscriber to receive Binding s of the given type. |
<T> void |
unsubscribe(com.google.inject.TypeLiteral<T> type,
BindingSubscriber subscriber)
Stops the given
BindingSubscriber from receiving Binding s of the given type. |
<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 bindingtrue
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 subscriberCopyright © 2010-2013 Sonatype, Inc.. All Rights Reserved.