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>
AChannelFactorythat instantiates a newChannelby 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 TnewChannel()Creates a new channel.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ReflectiveChannelFactory
public ReflectiveChannelFactory(java.lang.Class<? extends T> clazz)
-
-
Method Detail
-
newChannel
public T newChannel()
Description copied from interface:ChannelFactoryCreates a new channel.- Specified by:
newChannelin interfaceChannelFactory<T extends Channel>- Specified by:
newChannelin interfaceChannelFactory<T extends Channel>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-