Interface BindingSubscriber<T>


  • public interface BindingSubscriber<T>
    Subscriber of Bindings from one or more BindingPublishers.
    • 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 ranked Binding to this subscriber.
      Iterable<com.google.inject.Binding<T>> bindings()
      Snapshot of currently subscribed Bindings.
      void remove​(com.google.inject.Binding<T> binding)
      Removes the given Binding from this subscriber.
      com.google.inject.TypeLiteral<T> type()
      Returns the type of Bindings that are of interest.
    • Method Detail

      • type

        com.google.inject.TypeLiteral<T> type()
        Returns the type of Bindings that are of interest.
        Returns:
        The literal type
      • add

        void add​(com.google.inject.Binding<T> binding,
                 int rank)
        Adds the given ranked Binding to this subscriber.
        Parameters:
        binding - The new binding
        rank - The assigned rank
      • remove

        void remove​(com.google.inject.Binding<T> binding)
        Removes the given Binding from this subscriber.
        Parameters:
        binding - The old binding
      • bindings

        Iterable<com.google.inject.Binding<T>> bindings()
        Snapshot of currently subscribed Bindings.
        Returns:
        The subscribed Bindings