diff options
Diffstat (limited to 'jdisc_core/src/main/java/com/yahoo/jdisc/service/CurrentContainer.java')
-rw-r--r-- | jdisc_core/src/main/java/com/yahoo/jdisc/service/CurrentContainer.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/service/CurrentContainer.java b/jdisc_core/src/main/java/com/yahoo/jdisc/service/CurrentContainer.java index 9b7af7e49f5..f0a39e0f045 100644 --- a/jdisc_core/src/main/java/com/yahoo/jdisc/service/CurrentContainer.java +++ b/jdisc_core/src/main/java/com/yahoo/jdisc/service/CurrentContainer.java @@ -27,11 +27,19 @@ public interface CurrentContainer { * * @param uri The identifier used to match this Request to an appropriate {@link ClientProvider} or {@link * RequestHandler}. The hostname must be "localhost" or a fully qualified domain name. + * @param context that can be attached for reference tracking * @return A reference to the current Container. * @throws NoBindingSetSelectedException If no {@link BindingSet} was selected by the {@link BindingSetSelector}. * @throws BindingSetNotFoundException If the named BindingSet was not found. * @throws ContainerNotReadyException If no active Container was found, this can only happen during initial * setup. */ - public Container newReference(URI uri); + default Container newReference(URI uri, Object context) { + return newReference(uri); + } + + default Container newReference(URI uri) { + return newReference(uri, null); + } + } |