Top Description Inners Fields Constructors Methods
io.netty.bootstrap

pack-priv abstract Class ChannelInitializerExtensions

extends Object
Class Inheritance
Known Direct Subclasses
io.netty.bootstrap.ChannelInitializerExtensions.EmptyExtensions, io.netty.bootstrap.ChannelInitializerExtensions.ServiceLoadingExtensions
Imports
io.netty.util.internal.SystemPropertyUtil, io.netty.util.internal.logging.InternalLogLevel, .InternalLogger, .InternalLoggerFactory, java.lang.ref.WeakReference, java.util.ArrayList, .Collection, .Collections, .Comparator, .ServiceLoader

The configurable facade that decides what ChannelInitializerExtensions to load and where to find them.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private static volatile ChannelInitializerExtensions
private static final InternalLogger

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract Collection<ChannelInitializerExtension>
extensions(ClassLoader cl)

Get the list of available extensions.

pack-priv static ChannelInitializerExtensions
getExtensions()

Get the configuration extensions, which is a no-op implementation by default, or a service-loading implementation if the io.netty.bootstrap.extensions system property is serviceload.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

implementationback to summary
private static volatile ChannelInitializerExtensions implementation
loggerback to summary
private static final InternalLogger logger

Constructor Detail

ChannelInitializerExtensionsback to summary
private ChannelInitializerExtensions()

Method Detail

extensionsback to summary
pack-priv abstract Collection<ChannelInitializerExtension> extensions(ClassLoader cl)

Get the list of available extensions. The list is unmodifiable.

getExtensionsback to summary
pack-priv static ChannelInitializerExtensions getExtensions()

Get the configuration extensions, which is a no-op implementation by default, or a service-loading implementation if the io.netty.bootstrap.extensions system property is serviceload.

io.netty.bootstrap back to summary

private final Class ChannelInitializerExtensions.EmptyExtensions

extends ChannelInitializerExtensions
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv Collection<ChannelInitializerExtension>
extensions(ClassLoader cl)

Implements abstract io.netty.bootstrap.ChannelInitializerExtensions.extensions.

Get the list of available extensions.
Inherited from io.netty.bootstrap.ChannelInitializerExtensions:
getExtensions

Constructor Detail

EmptyExtensionsback to summary
private EmptyExtensions()

Method Detail

extensionsback to summary
pack-priv Collection<ChannelInitializerExtension> extensions(ClassLoader cl)

Implements abstract io.netty.bootstrap.ChannelInitializerExtensions.extensions.

Doc from io.netty.bootstrap.ChannelInitializerExtensions.extensions.

Get the list of available extensions. The list is unmodifiable.

Annotations
@Override
io.netty.bootstrap back to summary

private final Class ChannelInitializerExtensions.ServiceLoadingExtensions

extends ChannelInitializerExtensions
Class Inheritance

Field Summary

Modifier and TypeField and Description
private WeakReference<ClassLoader>
private Collection<ChannelInitializerExtension>
private final boolean
private final InternalLogLevel

Constructor Summary

AccessConstructor and Description
pack-priv
ServiceLoadingExtensions(InternalLogLevel logLevel, boolean loadAndCache)

Method Summary

Modifier and TypeMethod and Description
pack-priv synchronized Collection<ChannelInitializerExtension>
extensions(ClassLoader cl)

Implements abstract io.netty.bootstrap.ChannelInitializerExtensions.extensions.

Get the list of available extensions.
private static Collection<ChannelInitializerExtension>
Inherited from io.netty.bootstrap.ChannelInitializerExtensions:
getExtensions

Field Detail

classLoaderback to summary
private WeakReference<ClassLoader> classLoader
extensionsback to summary
private Collection<ChannelInitializerExtension> extensions
loadAndCacheback to summary
private final boolean loadAndCache
logLevelback to summary
private final InternalLogLevel logLevel

Constructor Detail

ServiceLoadingExtensionsback to summary
pack-priv ServiceLoadingExtensions(InternalLogLevel logLevel, boolean loadAndCache)

Method Detail

extensionsback to summary
pack-priv synchronized Collection<ChannelInitializerExtension> extensions(ClassLoader cl)

Implements abstract io.netty.bootstrap.ChannelInitializerExtensions.extensions.

Doc from io.netty.bootstrap.ChannelInitializerExtensions.extensions.

Get the list of available extensions. The list is unmodifiable.

Annotations
@SuppressWarnings:AssignmentOrReturnOfFieldWithMutableType
@Override
serviceLoadExtensionsback to summary
private static Collection<ChannelInitializerExtension> serviceLoadExtensions(InternalLogLevel logLevel, ClassLoader cl)