Class AbstractDispatcher

java.lang.Object
ch.tocco.nice2.model.entity.api.schema.AbstractDispatcher
Direct Known Subclasses:
AbstractFixFactory, DispatchingReporter, DispatchingSchemaCheck

public abstract class AbstractDispatcher extends Object
  • Constructor Details

    • AbstractDispatcher

      protected AbstractDispatcher()
  • Method Details

    • dispatch

      public List<Object> dispatch(Object event, boolean allowNulls)
      Dispatches the given object to the appropriate methods. Return values are collected and flattened. If allowNulls is false the returned list will not null elements.
    • getDispatchClass

      protected Class<?> getDispatchClass()
    • consider

      protected boolean consider(Method method)
    • allowedReturnTypes

      protected Set<com.google.common.reflect.TypeToken<?>> allowedReturnTypes()