Package org.apache.sshd.common.io
Enum BuiltinIoServiceFactoryFactories
- java.lang.Object
-
- java.lang.Enum<BuiltinIoServiceFactoryFactories>
-
- org.apache.sshd.common.io.BuiltinIoServiceFactoryFactories
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BuiltinIoServiceFactoryFactories>
,java.util.function.Supplier<IoServiceFactoryFactory>
,Factory<IoServiceFactoryFactory>
,NamedFactory<IoServiceFactoryFactory>
,NamedResource
,OptionalFeature
public enum BuiltinIoServiceFactoryFactories extends java.lang.Enum<BuiltinIoServiceFactoryFactories> implements NamedFactory<IoServiceFactoryFactory>, OptionalFeature
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<? extends IoServiceFactoryFactory>
factoryClass
private java.lang.String
factoryClassName
static java.util.Set<BuiltinIoServiceFactoryFactories>
VALUES
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
Fields inherited from interface org.apache.sshd.common.OptionalFeature
FALSE, TRUE
-
-
Constructor Summary
Constructors Modifier Constructor Description private
BuiltinIoServiceFactoryFactories(java.lang.Class<? extends IoServiceFactoryFactory> clazz)
private
BuiltinIoServiceFactoryFactories(java.lang.String clazz)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IoServiceFactoryFactory
create()
static BuiltinIoServiceFactoryFactories
fromFactoryClass(java.lang.Class<?> clazz)
static BuiltinIoServiceFactoryFactories
fromFactoryName(java.lang.String name)
java.lang.Class<? extends IoServiceFactoryFactory>
getFactoryClass()
java.lang.String
getFactoryClassName()
java.lang.String
getName()
boolean
isSupported()
static BuiltinIoServiceFactoryFactories
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BuiltinIoServiceFactoryFactories[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NIO2
public static final BuiltinIoServiceFactoryFactories NIO2
-
MINA
public static final BuiltinIoServiceFactoryFactories MINA
-
NETTY
public static final BuiltinIoServiceFactoryFactories NETTY
-
-
Field Detail
-
VALUES
public static final java.util.Set<BuiltinIoServiceFactoryFactories> VALUES
-
factoryClass
private final java.lang.Class<? extends IoServiceFactoryFactory> factoryClass
-
factoryClassName
private final java.lang.String factoryClassName
-
-
Constructor Detail
-
BuiltinIoServiceFactoryFactories
private BuiltinIoServiceFactoryFactories(java.lang.Class<? extends IoServiceFactoryFactory> clazz)
-
BuiltinIoServiceFactoryFactories
private BuiltinIoServiceFactoryFactories(java.lang.String clazz)
-
-
Method Detail
-
values
public static BuiltinIoServiceFactoryFactories[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BuiltinIoServiceFactoryFactories c : BuiltinIoServiceFactoryFactories.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BuiltinIoServiceFactoryFactories valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getFactoryClassName
public final java.lang.String getFactoryClassName()
-
getFactoryClass
public final java.lang.Class<? extends IoServiceFactoryFactory> getFactoryClass()
-
getName
public final java.lang.String getName()
- Specified by:
getName
in interfaceNamedResource
- Returns:
- The resource name
-
create
public final IoServiceFactoryFactory create()
- Specified by:
create
in interfaceFactory<IoServiceFactoryFactory>
- Returns:
- A new instance
-
isSupported
public boolean isSupported()
- Specified by:
isSupported
in interfaceOptionalFeature
-
fromFactoryName
public static BuiltinIoServiceFactoryFactories fromFactoryName(java.lang.String name)
-
fromFactoryClass
public static BuiltinIoServiceFactoryFactories fromFactoryClass(java.lang.Class<?> clazz)
-
-