Top Description Fields Constructors Methods
io.netty.channel

public Class ReflectiveChannelFactory<T extends Channel>

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

Deprecated

as a consequence of ChannelFactory being deprecated. See corresponding docs for further information.

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()

Implements io.netty.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()

Implements io.netty.channel.ChannelFactory.newChannel.

Doc from io.netty.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