aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/processing/handler/ProcessingHandler.java
blob: 21f9608779afe84354d2ce3dccf713afe78e330d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.processing.handler;

import com.yahoo.component.annotation.Inject;
import com.yahoo.component.provider.ComponentRegistry;
import com.yahoo.container.core.ChainsConfig;
import com.yahoo.container.logging.AccessLog;
import com.yahoo.jdisc.Metric;
import com.yahoo.processing.Processor;
import com.yahoo.processing.execution.chain.ChainRegistry;
import com.yahoo.processing.rendering.Renderer;

import java.util.concurrent.Executor;

/**
 * A request handler which invokes a processing chain to produce the response.
 *
 * @author Tony Vaagenes
 */
public class ProcessingHandler extends AbstractProcessingHandler<Processor> {

    public ProcessingHandler(ChainRegistry<Processor> chainRegistry,
                             ComponentRegistry<Renderer> renderers,
                             Executor executor,
                             AccessLog accessLog,
                             Metric metric) {
        super(chainRegistry, renderers, executor, accessLog, metric);
    }

    public ProcessingHandler(ChainRegistry<Processor> chainRegistry,
                             ComponentRegistry<Renderer> renderers,
                             Executor executor,
                             AccessLog accessLog) {
        super(chainRegistry, renderers, executor, accessLog);
    }

    public ProcessingHandler(ChainsConfig processingChainsConfig,
                             ComponentRegistry<Processor> chainedComponents,
                             ComponentRegistry<Renderer> renderers,
                             Executor executor,
                             AccessLog accessLog) {
        super(processingChainsConfig, chainedComponents, renderers, executor, accessLog);
    }

    @Inject
    public ProcessingHandler(ChainsConfig processingChainsConfig,
                             ComponentRegistry<Processor> chainedComponents,
                             ComponentRegistry<Renderer> renderers,
                             Executor executor,
                             AccessLog accessLog,
                             Metric metric) {
        super(processingChainsConfig, chainedComponents, renderers, executor, accessLog, metric);
    }

}