QueryHandlerFunctionFactorySupport
abstract class QueryHandlerFunctionFactorySupport<G : QueryGateway<*>>(handlerKey: String, queryGateway: (AggregateMetadata<*, *>) -> G, handlerFunction: (AggregateMetadata<*, *>, G) -> HandlerFunction<ServerResponse>) : AggregateRouteHandlerFunctionFactorySupport
Base factory for aggregate query routes: resolves the aggregate's gateway once per route and hands both to handlerFunction.
Inheritors
Constructors
Link copied to clipboard
constructor(handlerKey: String, queryGateway: (AggregateMetadata<*, *>) -> G, handlerFunction: (AggregateMetadata<*, *>, G) -> HandlerFunction<ServerResponse>)