blob: 888514160929fc2969bdd5e0571bd8891aa3db0e (
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
|
// Copyright Yahoo. 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<AnyConfigProducer, ComponentModel> {
public SimpleComponent(ComponentModel model) {
super(model);
}
public SimpleComponent(String className) {
this(new ComponentModel(BundleInstantiationSpecification.fromStrings(className, null, null)));
}
}
|