public interface SubsystemFactory extends NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR| Modifier and Type | Method and Description |
|---|---|
Command |
createSubsystem(ChannelSession channel) |
static Command |
createSubsystem(ChannelSession channel,
java.util.Collection<? extends SubsystemFactory> factories,
java.lang.String name) |
findByName, getName, getNameList, getNames, ofName, removeByNameCommand createSubsystem(ChannelSession channel) throws java.io.IOException
channel - The ChannelSession through which the command has been receivednull Command instance representing the subsystem to be runjava.io.IOException - if failed to create the instancestatic Command createSubsystem(ChannelSession channel, java.util.Collection<? extends SubsystemFactory> factories, java.lang.String name) throws java.io.IOException
channel - The ChannelSession through which the command has been receivedfactories - The available SubsystemFactory-ies - ignored if null/emptyname - Requested subsystem nameCommand instance representing the subsystem to be run - null if
no match foundjava.io.IOException - If found a matching factory but failed to create the command instance