Class EventAdapters

  • Direct Known Subclasses:
    IdentityEventAdapters$

    public class EventAdapters
    extends java.lang.Object
    EventAdapters serves as a per-journal collection of bound event adapters.
    • Constructor Detail

      • EventAdapters

        public EventAdapters​(java.util.concurrent.ConcurrentHashMap<java.lang.Class<?>,​EventAdapter> map,
                             scala.collection.immutable.Seq<scala.Tuple2<java.lang.Class<?>,​EventAdapter>> bindings,
                             LoggingAdapter log)
    • Method Detail

      • get

        public EventAdapter get​(java.lang.Class<?> clazz)
        Finds the "most specific" matching adapter for the given class (i.e. it may return an adapter that can work on a interface implemented by the given class if no direct match is found).

        Falls back to IdentityEventAdapter if no adapter was defined for the given class.

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object