diff options
author | gjoranv <gv@verizonmedia.com> | 2022-07-09 23:43:40 +0200 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2022-07-11 23:10:20 +0200 |
commit | 2bbe2cd9c5276dde600961313ada24d2fa98b996 (patch) | |
tree | b558a0ff5ff80985c3a9ace6e6fc475d3f2119a4 /config-model/src/main/java/com/yahoo/vespa/model/container/Container.java | |
parent | 6b93d9971bc2594fb2766b845ac3e9362b32e60f (diff) |
Simplify by removing the not-so-useful generic param for Handler
- Uust declare it as a Component with other Components as children.
Diffstat (limited to 'config-model/src/main/java/com/yahoo/vespa/model/container/Container.java')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/container/Container.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/container/Container.java b/config-model/src/main/java/com/yahoo/vespa/model/container/Container.java index 63c323bfdaf..3d6332a9773 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/container/Container.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/container/Container.java @@ -76,7 +76,7 @@ public abstract class Container extends AbstractService implements private final boolean dumpHeapOnShutdownTimeout; private final double shutdownTimeoutS; - private final ComponentGroup<Handler<?>> handlers = new ComponentGroup<>(this, "handler"); + private final ComponentGroup<Handler> handlers = new ComponentGroup<>(this, "handler"); private final ComponentGroup<Component<?, ?>> components = new ComponentGroup<>(this, "components"); private final JettyHttpServer defaultHttpServer; @@ -113,7 +113,7 @@ public abstract class Container extends AbstractService implements /** True if this container is retired (slated for removal) */ public boolean isRetired() { return retired; } - public ComponentGroup<Handler<?>> getHandlers() { + public ComponentGroup<Handler> getHandlers() { return handlers; } @@ -129,7 +129,7 @@ public abstract class Container extends AbstractService implements addComponent(new SimpleComponent(new ComponentModel(idSpec, classSpec, bundleSpec))); } - public final void addHandler(Handler<?> h) { + public final void addHandler(Handler h) { handlers.addComponent(h); } |