Class AbstractContextBasedEventHandler

  • All Implemented Interfaces:
    IEventHandler
    Direct Known Subclasses:
    ProductEventHandler

    public abstract class AbstractContextBasedEventHandler
    extends java.lang.Object
    implements IEventHandler
    Base class for events handling depending on the context.
    • Field Detail

      • defaultContext

        private final IContext defaultContext
    • Constructor Detail

      • AbstractContextBasedEventHandler

        protected AbstractContextBasedEventHandler​(IContext onUnknownContext)
        Creates a new instance of the handler with the defined fallback for events within unknown contexts.
        Parameters:
        onUnknownContext - is a fallback for events within unknown context