Module io.netty5.transport
Package io.netty5.channel
Class ReflectiveChannelFactory<T extends Channel>
- java.lang.Object
-
- io.netty5.channel.ReflectiveChannelFactory<T>
-
- All Implemented Interfaces:
ChannelFactory<T>
public class ReflectiveChannelFactory<T extends Channel> extends Object implements ChannelFactory<T>
AChannelFactory
that instantiates a newChannel
by invoking its default constructor reflectively.
-
-
Constructor Summary
Constructors Constructor Description ReflectiveChannelFactory(Class<? extends T> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
newChannel(EventLoop eventLoop)
Creates a new channel.String
toString()
-
-
-
Method Detail
-
newChannel
public T newChannel(EventLoop eventLoop) throws Exception
Description copied from interface:ChannelFactory
Creates a new channel.- Specified by:
newChannel
in interfaceChannelFactory<T extends Channel>
- Throws:
Exception
-
-