aboutsummaryrefslogtreecommitdiffstats
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 16:03:06 +0100
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2022-02-08 16:17:00 +0100
commitbad739ae3be754bb495b5a3b5830a0c972f8fa39 (patch)
tree975f0513a6a6df7854ddace58223e3b1ec65ffd3 /jdisc_core/src/main/java/com/yahoo/jdisc/Container.java
parentfdae546b833532aac0a2f49400ccf15071549c6b (diff)
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