aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/container/http/ssl/DefaultSslProvider.java
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2020-10-19 15:31:21 +0200
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2020-10-19 15:31:21 +0200
commit64dbd6d203149b614faf9f5100dca6fca2382c39 (patch)
treeaf6539fd8c6db8010f4d5be990fd04e1c7c68293 /config-model/src/main/java/com/yahoo/vespa/model/container/http/ssl/DefaultSslProvider.java
parentb2681968b4bf62c5b89cc0132542ab0519d5e70a (diff)
Remove duplicate connector config generated by ssl provider implementations
Change ssl providers to modify the parent connector's config instead of generating its own connector config.
Diffstat (limited to 'config-model/src/main/java/com/yahoo/vespa/model/container/http/ssl/DefaultSslProvider.java')
-rw-r--r--config-model/src/main/java/com/yahoo/vespa/model/container/http/ssl/DefaultSslProvider.java16
1 files changed, 3 insertions, 13 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/container/http/ssl/DefaultSslProvider.java b/config-model/src/main/java/com/yahoo/vespa/model/container/http/ssl/DefaultSslProvider.java
index 1a5ce615a9d..215c1813e95 100644
--- a/config-model/src/main/java/com/yahoo/vespa/model/container/http/ssl/DefaultSslProvider.java
+++ b/config-model/src/main/java/com/yahoo/vespa/model/container/http/ssl/DefaultSslProvider.java
@@ -1,31 +1,21 @@
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.container.http.ssl;
-import com.yahoo.component.ComponentId;
-import com.yahoo.container.bundle.BundleInstantiationSpecification;
import com.yahoo.jdisc.http.ConnectorConfig;
import com.yahoo.jdisc.http.ssl.impl.DefaultSslContextFactoryProvider;
-import com.yahoo.osgi.provider.model.ComponentModel;
-import com.yahoo.vespa.model.container.component.SimpleComponent;
-
-import static com.yahoo.component.ComponentSpecification.fromString;
/**
* @author bjorncs
*/
-public class DefaultSslProvider extends SimpleComponent implements ConnectorConfig.Producer {
+public class DefaultSslProvider extends SslProvider {
public static final String COMPONENT_ID_PREFIX = "default-ssl-provider@";
public static final String COMPONENT_CLASS = DefaultSslContextFactoryProvider.class.getName();
public static final String COMPONENT_BUNDLE = "jdisc_http_service";
public DefaultSslProvider(String serverName) {
- super(new ComponentModel(
- new BundleInstantiationSpecification(new ComponentId(COMPONENT_ID_PREFIX + serverName),
- fromString(COMPONENT_CLASS),
- fromString(COMPONENT_BUNDLE))));
+ super(COMPONENT_ID_PREFIX, serverName, COMPONENT_CLASS, COMPONENT_BUNDLE);
}
- @Override
- public void getConfig(ConnectorConfig.Builder builder) {}
+ @Override public void amendConnectorConfig(ConnectorConfig.Builder builder) {}
} \ No newline at end of file