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