All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.vespa.model.container.component.SimpleComponent Maven / Gradle / Ivy

There is a newer version: 8.441.21
Show newest version
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.container.component;

import com.yahoo.container.bundle.BundleInstantiationSpecification;
import com.yahoo.osgi.provider.model.ComponentModel;
import com.yahoo.config.model.producer.AnyConfigProducer;
import com.yahoo.config.model.producer.TreeConfigProducer;

/**
 * A component that uses the class name as id, and resides in the container-disc bundle.
 *
 * @author gjoranv
 */
public class SimpleComponent extends Component {

    public SimpleComponent(ComponentModel model) {
        super(model);
    }

    public SimpleComponent(String className) {
        this(new ComponentModel(BundleInstantiationSpecification.fromStrings(className, null, null)));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy