Package org.eclipse.sisu.inject
Interface BindingSubscriber<T>
public interface BindingSubscriber<T>
Subscriber of
Binding
s from one or more BindingPublisher
s.-
Method Summary
-
Method Details
-
type
com.google.inject.TypeLiteral<T> type()Returns the type ofBinding
s that are of interest.- Returns:
- The literal type
-
add
Adds the given rankedBinding
to this subscriber.- Parameters:
binding
- The new bindingrank
- The assigned rank
-
remove
Removes the givenBinding
from this subscriber.- Parameters:
binding
- The old binding
-
bindings
Snapshot of currently subscribedBinding
s.- Returns:
- The subscribed
Binding
s
-