Search in sources :

Example 6 with ComponentModel

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);
}
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

ComponentModel (com.yahoo.osgi.provider.model.ComponentModel)6 AbstractConfigProducer (com.yahoo.config.model.producer.AbstractConfigProducer)4 StateHandler (com.yahoo.container.jdisc.state.StateHandler)3 BindingsOverviewHandler (com.yahoo.container.usability.BindingsOverviewHandler)3 Handler (com.yahoo.vespa.model.container.component.Handler)3 ProcessingHandler (com.yahoo.vespa.model.container.component.chain.ProcessingHandler)3 JerseyHandler (com.yahoo.vespa.model.container.jersey.JerseyHandler)3 ComponentId (com.yahoo.component.ComponentId)1 ComponentSpecification.fromString (com.yahoo.component.ComponentSpecification.fromString)1 BundleInstantiationSpecification (com.yahoo.container.bundle.BundleInstantiationSpecification)1 MbusServerProvider (com.yahoo.container.jdisc.messagebus.MbusServerProvider)1 Component (com.yahoo.vespa.model.container.component.Component)1 SimpleComponent (com.yahoo.vespa.model.container.component.SimpleComponent)1 LinkedHashMap (java.util.LinkedHashMap)1 Element (org.w3c.dom.Element)1