Package com.yahoo.jdisc.application
Interface BindingSetSelector
- All Known Implementing Classes:
DefaultBindingSelector
public interface BindingSetSelector
This interface defines the component that is used by the
CurrentContainer
to assign a BindingSet
to a
newly created Container
based on the given URI
. The default implementation of this interface returns
BindingSet.DEFAULT
regardless of input. To specify your own selector you need to install
a Guice Module
that provides a binding for this interface.- Author:
- Simon Thoresen Hult
-
Method Summary
-
Method Details
-
select
Returns the name of theBindingSet
to assign to theContainer
for the givenURI
. If this method returns null, the corresponding call toCurrentContainer.newReference(URI)
will throw aNoBindingSetSelectedException
.- Parameters:
uri
- The URI to select on.- Returns:
- The name of selected BindingSet.
-