summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/container/search/GUIHandler.java
blob: 7087cabafc174a33ef384ae506e8879fead20e70 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.container.search;

import com.yahoo.config.model.producer.AbstractConfigProducer;
import com.yahoo.container.bundle.BundleInstantiationSpecification;
import com.yahoo.osgi.provider.model.ComponentModel;
import com.yahoo.vespa.model.container.component.Handler;


/**
 * @author  Henrik Høiness
 */
public class GUIHandler extends Handler<AbstractConfigProducer<?>> {

    public static final String BUNDLE = "container-search-gui";
    public static final String CLASS = "com.yahoo.search.query.gui.GUIHandler";
    public static final String BINDING_PATH = "/querybuilder/*";

    public GUIHandler() {
        super(new ComponentModel(bundleSpec(CLASS, BUNDLE)));
    }

    public static BundleInstantiationSpecification bundleSpec(String className, String bundle) {
        return BundleInstantiationSpecification.getFromStrings(className, className, bundle);
    }

}