Search in sources :

Example 1 with SimpleComponent

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;
}
Also used : ServletProvider(com.yahoo.vespa.model.container.component.ServletProvider) SimpleComponent(com.yahoo.vespa.model.container.component.SimpleComponent)

Example 2 with SimpleComponent

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);
}
Also used : SimpleComponent(com.yahoo.vespa.model.container.component.SimpleComponent) ComponentModel(com.yahoo.osgi.provider.model.ComponentModel) ComponentSpecification.fromString(com.yahoo.component.ComponentSpecification.fromString)

Aggregations

SimpleComponent (com.yahoo.vespa.model.container.component.SimpleComponent)2 ComponentSpecification.fromString (com.yahoo.component.ComponentSpecification.fromString)1 ComponentModel (com.yahoo.osgi.provider.model.ComponentModel)1 ServletProvider (com.yahoo.vespa.model.container.component.ServletProvider)1