Class SpringRequestDispatcher<RQ,​RS>

java.lang.Object
stincmale.server.reqres.RequestDispatcherByProcessorName<RQ,​RS>
stincmale.server.reqres.spring.SpringRequestDispatcher<RQ,​RS>
All Implemented Interfaces:
RequestDispatcher<RQ,​RS>, RequestProcessor<RQ,​RS>
Direct Known Subclasses:
SimpleSpringHttpRequestDispatcherByUrl

@ThreadSafe
public abstract class SpringRequestDispatcher<RQ,​RS>
extends RequestDispatcherByProcessorName<RQ,​RS>
RequestDispatcherByProcessorName that automatically searches for RequestProcessors String beans annotated with @Processor.
  • Constructor Details

    • SpringRequestDispatcher

      protected SpringRequestDispatcher​(ApplicationContext appCtx, @Nullable Collection<String> packageNames, boolean searchRecursively, @Nullable com.timgroup.statsd.StatsDClient statsDClient)
      Parameters:
      packageNames - A Collection of Java packages where to search for Spring beans annotated with @Processor. If null then search will be performed in all packages known to appCtx.
      searchRecursively - Specifies if subpackages of packageNames must be searched.