Package org.eclipse.sisu.inject
Interface BindingSubscriber<T>
-
- All Known Implementing Classes:
RankedBindings
,WatchedBeans
public interface BindingSubscriber<T>
Subscriber ofBinding
s from one or moreBindingPublisher
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(com.google.inject.Binding<T> binding, int rank)
Adds the given rankedBinding
to this subscriber.java.lang.Iterable<com.google.inject.Binding<T>>
bindings()
Snapshot of currently subscribedBinding
s.void
remove(com.google.inject.Binding<T> binding)
Removes the givenBinding
from this subscriber.com.google.inject.TypeLiteral<T>
type()
Returns the type ofBinding
s that are of interest.
-
-
-
Method Detail
-
type
com.google.inject.TypeLiteral<T> type()
Returns the type ofBinding
s that are of interest.- Returns:
- The literal type
-
add
void add(com.google.inject.Binding<T> binding, int rank)
Adds the given rankedBinding
to this subscriber.- Parameters:
binding
- The new bindingrank
- The assigned rank
-
remove
void remove(com.google.inject.Binding<T> binding)
Removes the givenBinding
from this subscriber.- Parameters:
binding
- The old binding
-
bindings
java.lang.Iterable<com.google.inject.Binding<T>> bindings()
Snapshot of currently subscribedBinding
s.- Returns:
- The subscribed
Binding
s
-
-