public interface BindingPublisher
Bindings to interested BindingSubscribers.| 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 Bindings of the given type. |
<T> void |
unsubscribe(com.google.inject.TypeLiteral<T> type,
BindingSubscriber subscriber)
Stops the given
BindingSubscriber from receiving Bindings of the given type. |
<T> void subscribe(com.google.inject.TypeLiteral<T> type,
BindingSubscriber subscriber)
BindingSubscriber to receive Bindings 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 Bindings of the given type.type - The binding typesubscriber - The subscriberCopyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.