Package com.yahoo.jdisc.application
Interface BindingSetSelector
-
- All Known Implementing Classes:
DefaultBindingSelector
public interface BindingSetSelector
This interface defines the component that is used by theCurrentContainer
to assign aBindingSet
to a newly createdContainer
based on the givenURI
. The default implementation of this interface returnsBindingSet.DEFAULT
regardless of input. To specify your own selector you need toinstall
a GuiceModule
that provides a binding for this interface.- Author:
- Simon Thoresen Hult
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
select(java.net.URI uri)
-
-
-
Method Detail
-
select
java.lang.String select(java.net.URI uri)
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.
-
-