summaryrefslogtreecommitdiffstats
path: root/jdisc_core/src/main/java/com/yahoo/jdisc/Container.java
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2022-02-08 17:13:41 +0100
committerGitHub <noreply@github.com>2022-02-08 17:13:41 +0100
commit12bc5e4513d97cd6bb752b3838fc610f634769a8 (patch)
tree91ba87fd1bfa2d10f4781963265d307008feb3aa /jdisc_core/src/main/java/com/yahoo/jdisc/Container.java
parent5607b924b450e6574f68fdbd164563e8c25b9dbd (diff)
parentbad739ae3be754bb495b5a3b5830a0c972f8fa39 (diff)
Merge pull request #21108 from vespa-engine/bjorncs/jdisc-corev7.540.35
Deprecate method leaking Guice
Diffstat (limited to 'jdisc_core/src/main/java/com/yahoo/jdisc/Container.java')
-rw-r--r--jdisc_core/src/main/java/com/yahoo/jdisc/Container.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/Container.java b/jdisc_core/src/main/java/com/yahoo/jdisc/Container.java
index f3ed16c65e7..e96f7f08fe8 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/Container.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/Container.java
@@ -49,8 +49,10 @@ public interface Container extends SharedResource, Timer {
* @return The appropriate instance of the given class.
* @throws ConfigurationException If this injector cannot find or create the provider.
* @throws ProvisionException If there was a runtime failure while providing an instance.
+ * @deprecated Use {@link #getInstance(Class)} instead.
*/
- <T> T getInstance(Key<T> key);
+ @Deprecated(forRemoval = true, since = "7") // TODO Vespa 8 remove
+ default <T> T getInstance(Key<T> key) { throw new UnsupportedOperationException(); }
/**
* Returns the appropriate instance for the given injection type. When feasible, avoid using this method in