use of com.yahoo.osgi.provider.model.ComponentModel in project vespa by vespa-engine.
the class ConnectorFactory method addSslConfigurator.
private void addSslConfigurator(String idSpec, Class<?> defaultImplementation, Element configuratorElement) {
SimpleComponent configuratorComponent;
if (configuratorElement != null) {
String className = configuratorElement.getAttribute("class");
String bundleName = configuratorElement.getAttribute("bundle");
configuratorComponent = new SimpleComponent(new ComponentModel(idSpec, className, bundleName));
} else {
configuratorComponent = new SimpleComponent(new ComponentModel(idSpec, defaultImplementation.getName(), "jdisc_http_service"));
}
addChild(configuratorComponent);
inject(configuratorComponent);
}
Aggregations