public interface

BindingSubscriber

org.eclipse.sisu.inject.BindingSubscriber<T>

Class Overview

Subscriber of Bindings from one or more BindingPublishers.

Summary

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 Bindings.
abstract void remove(Binding<T> binding)
Removes the given Binding from this subscriber.
abstract TypeLiteral<T> type()
Returns the type of Bindings that are of interest.

Public Methods

public abstract void add (Binding<T> binding, int rank)

Adds the given ranked Binding to this subscriber.

Parameters
binding The new binding
rank The assigned rank

public abstract Iterable<Binding<T>> bindings ()

Snapshot of currently subscribed Bindings.

Returns

public abstract void remove (Binding<T> binding)

Removes the given Binding from this subscriber.

Parameters
binding The old binding

public abstract TypeLiteral<T> type ()

Returns the type of Bindings that are of interest.

Returns
  • The literal type