aboutsummaryrefslogtreecommitdiffstats
path: root/config/src/main/java/com/yahoo/config/subscription/impl/GenericConfigHandle.java
blob: 924cc88579fec917e305f8d9abd24e970ed93fb9 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.subscription.impl;

import com.yahoo.config.subscription.ConfigHandle;
import com.yahoo.vespa.config.RawConfig;

/**
 * A config handle which does not use the config class, but payload instead. Used in config proxy.
 *
 * @author Vegard Havdal
 */
@SuppressWarnings({"rawtypes", "unchecked"})
public class GenericConfigHandle extends ConfigHandle {

    private final GenericJRTConfigSubscription subscription;

    public GenericConfigHandle(GenericJRTConfigSubscription subscription) {
        super(subscription);
        this.subscription = subscription;
    }

    public RawConfig getRawConfig() {
        return subscription.getRawConfig();
    }

}