org.eclipse.sisu.inject.BindingSubscriber<T> |
Subscriber of Bindings from one or more BindingPublisher
s.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
add(Binding<T> binding, int rank)
Adds the given ranked
Binding to this subscriber. | ||||||||||
abstract Iterable<Binding<T>> |
bindings()
Snapshot of currently subscribed
Binding s. | ||||||||||
abstract void |
remove(Binding<T> binding)
Removes the given
Binding from this subscriber. | ||||||||||
abstract TypeLiteral<T> |
type()
Returns the type of
Binding s that are of interest. |
Adds the given ranked Binding
to this subscriber.
binding | The new binding |
---|---|
rank | The assigned rank |
Removes the given Binding
from this subscriber.
binding | The old binding |
---|
Returns the type of Binding
s that are of interest.