aboutsummaryrefslogtreecommitdiffstats
path: root/container-disc/src/main/java/com/yahoo/container/jdisc/DisabledConnectionLogProvider.java
blob: c15488d2e7734330e5234a4811c34a57f716ad6c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.jdisc;

import com.yahoo.container.di.componentgraph.Provider;
import com.yahoo.container.logging.ConnectionLog;
import com.yahoo.jdisc.http.server.jetty.VoidConnectionLog;

/**
 * @author bjorncs
 */
public class DisabledConnectionLogProvider implements Provider<ConnectionLog> {

    private static final ConnectionLog INSTANCE = new VoidConnectionLog();

    @Override public ConnectionLog get() { return INSTANCE; }
    @Override public void deconstruct() {}

}