Module io.netty5.transport
Package io.netty5.channel
Class ReflectiveServerChannelFactory<T extends ServerChannel>
- java.lang.Object
-
- io.netty5.channel.ReflectiveServerChannelFactory<T>
-
- All Implemented Interfaces:
ServerChannelFactory<T>
public final class ReflectiveServerChannelFactory<T extends ServerChannel> extends Object implements ServerChannelFactory<T>
AChannelFactory
that instantiates a newServerChannel
by invoking its default constructor reflectively.
-
-
Constructor Summary
Constructors Constructor Description ReflectiveServerChannelFactory(Class<? extends T> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
newChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup)
Creates a new channel.String
toString()
-
-
-
Method Detail
-
newChannel
public T newChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup)
Description copied from interface:ServerChannelFactory
Creates a new channel.- Specified by:
newChannel
in interfaceServerChannelFactory<T extends ServerChannel>
-
-