Module stincmale.server
Package stincmale.server.reqres.spring
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 RequestProcessor
s String beans annotated with
@
Processor
.-
Constructor Summary
Constructors Modifier Constructor Description protected
SpringRequestDispatcher(ApplicationContext appCtx, Collection<String> packageNames, boolean searchRecursively, com.timgroup.statsd.StatsDClient statsDClient)
-
Method Summary
Methods inherited from class stincmale.server.reqres.RequestDispatcherByProcessorName
getProcessorName, getProcessors, process
-
Constructor Details
-
SpringRequestDispatcher
protected SpringRequestDispatcher(ApplicationContext appCtx, @Nullable Collection<String> packageNames, boolean searchRecursively, @Nullable com.timgroup.statsd.StatsDClient statsDClient)- Parameters:
packageNames
- ACollection
of Java packages where to search for Spring beans annotated with@
Processor
. Ifnull
then search will be performed in all packages known toappCtx
.searchRecursively
- Specifies if subpackages ofpackageNames
must be searched.
-