summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/container/search/GUIHandler.java
blob: 025075be8fd02a1d430301c1cc5cfdcdae7aed4e (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 2018 Yahoo Holdings. 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 = "*/querybuilder/*";

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

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

}