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,
Collection<? extends SubsystemFactory> factories,
String name) |
findByName, findFirstMatchByName, getName, getNameList, getNames, ofName, removeByName, safeCompareByNameCommand createSubsystem(ChannelSession channel) throws IOException
channel - The ChannelSession through which the command has been receivednull Command instance representing the subsystem to be runIOException - if failed to create the instancestatic Command createSubsystem(ChannelSession channel, Collection<? extends SubsystemFactory> factories, String name) throws 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 foundIOException - If found a matching factory but failed to create the command instanceCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.