use of com.yahoo.vespa.model.container.component.SimpleComponent in project vespa by vespa-engine.
the class ServletBuilder method doBuild.
@Override
protected ServletProvider doBuild(AbstractConfigProducer ancestor, Element servletElement) {
SimpleComponent servlet = createServletComponent(servletElement);
ServletProvider servletProvider = createServletProvider(servletElement, servlet);
return servletProvider;
}
use of com.yahoo.vespa.model.container.component.SimpleComponent 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