Top Description Fields Constructors Methods
io.netty5.channel

public Class ReflectiveChannelFactory<T extends Channel>

extends Object
implements ChannelFactory<T extends Channel>
Class Inheritance
All Implemented Interfaces
io.netty5.channel.ChannelFactory
Imports
io.netty5.util.internal.StringUtil, java.lang.reflect.Constructor

A ChannelFactory that instantiates a new Channel by invoking its default constructor reflectively.

Field Summary

Modifier and TypeField and Description
private final Constructor<? extends T>

Constructor Summary

AccessConstructor and Description
public
ReflectiveChannelFactory(Class<? extends T> clazz)

Method Summary

Modifier and TypeMethod and Description
public T
newChannel(EventLoop eventLoop)

Implements io.netty5.channel.ChannelFactory.newChannel.

Creates a new channel.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

constructorback to summary
private final Constructor<? extends T> constructor

Constructor Detail

ReflectiveChannelFactoryback to summary
public ReflectiveChannelFactory(Class<? extends T> clazz)

Method Detail

newChannelback to summary
public T newChannel(EventLoop eventLoop) throws Exception

Implements io.netty5.channel.ChannelFactory.newChannel.

Doc from io.netty5.channel.ChannelFactory.newChannel.

Creates a new channel.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override