diff options
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.java | 4 |
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 |