public interface BindingSubscriber<T>
Bindings from one or more BindingPublishers.| Modifier and Type | Method | Description |
|---|---|---|
void |
add(com.google.inject.Binding<T> binding,
int rank) |
Adds the given ranked
Binding to this subscriber. |
java.lang.Iterable<com.google.inject.Binding<T>> |
bindings() |
Snapshot of currently subscribed
Bindings. |
void |
remove(com.google.inject.Binding<T> binding) |
Removes the given
Binding from this subscriber. |
com.google.inject.TypeLiteral<T> |
type() |
Returns the type of
Bindings that are of interest. |
com.google.inject.TypeLiteral<T> type()
Bindings that are of interest.void add(com.google.inject.Binding<T> binding, int rank)
Binding to this subscriber.binding - The new bindingrank - The assigned rankvoid remove(com.google.inject.Binding<T> binding)
Binding from this subscriber.binding - The old bindingjava.lang.Iterable<com.google.inject.Binding<T>> bindings()
Bindings.Bindings