@FunctionalInterface
public interface ShellFactorySelector
| Modifier and Type | Method and Description |
|---|---|
ShellFactory |
selectShellFactory(ChannelSession channelSession) |
static ShellFactory |
selectShellFactory(java.util.Collection<? extends ShellFactorySelector> selectors,
ChannelSession channel)
Consults each selector whether it wants to provide a factory for the
ChannelSession |
ShellFactory selectShellFactory(ChannelSession channelSession) throws java.io.IOException
channelSession - The ChannelSessionShellFactory to use for the channel - null if nonejava.io.IOException - If failed the selectionstatic ShellFactory selectShellFactory(java.util.Collection<? extends ShellFactorySelector> selectors, ChannelSession channel) throws java.io.IOException
ChannelSessionselectors - The ShellFactorySelector-s to consult - ignored if null/emptychannel - The ChannelSession instanceShellFactory - null if no selector matched (in which case the
default factory is used)java.io.IOException - if any selector threw it