Package org.eclipse.sisu.inject
Interface BindingSubscriber<T>
-
public interface BindingSubscriber<T>Subscriber ofBindings from one or moreBindingPublishers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(com.google.inject.Binding<T> binding, int rank)Adds the given rankedBindingto this subscriber.Iterable<com.google.inject.Binding<T>>bindings()Snapshot of currently subscribedBindings.voidremove(com.google.inject.Binding<T> binding)Removes the givenBindingfrom this subscriber.com.google.inject.TypeLiteral<T>type()Returns the type ofBindings that are of interest.
-
-
-
Method Detail
-
type
com.google.inject.TypeLiteral<T> type()
Returns the type ofBindings that are of interest.- Returns:
- The literal type
-
add
void add(com.google.inject.Binding<T> binding, int rank)
Adds the given rankedBindingto this subscriber.- Parameters:
binding- The new bindingrank- The assigned rank
-
remove
void remove(com.google.inject.Binding<T> binding)
Removes the givenBindingfrom this subscriber.- Parameters:
binding- The old binding
-
-