Class ServiceInitializerListener
- java.lang.Object
-
- org.glassfish.grizzly.config.GenericGrizzlyListener
-
- com.sun.enterprise.v3.services.impl.ServiceInitializerListener
-
- All Implemented Interfaces:
GrizzlyListener
public class ServiceInitializerListener extends GenericGrizzlyListener
This class extends Grizzly's GrizzlyServiceListener class to customize it for GlassFish and enable a single listener do both lazy service initialization as well as init of HTTP and admin listeners- Author:
- Vijay Ramachandran, Alexey Stashok
-
-
Field Summary
-
Fields inherited from class org.glassfish.grizzly.config.GenericGrizzlyListener
address, isAjpEnabled, isCometEnabled, isHttp2Enabled, isSpdyEnabled, isWebSocketEnabled, name, port, portRange, rootFilterChain, skipHttp2, transport
-
-
Constructor Summary
Constructors Constructor Description ServiceInitializerListener(GrizzlyService grizzlyService, NetworkListener networkListener, Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureProtocol(org.glassfish.hk2.api.ServiceLocator habitat, NetworkListener networkListener, Protocol protocol, org.glassfish.grizzly.filterchain.FilterChainBuilder filterChainBuilder)
protected void
configureThreadPool(org.glassfish.hk2.api.ServiceLocator habitat, NetworkListener networkListener, ThreadPool threadPool)
protected void
configureTransport(NetworkListener networkListener, Transport transportConfig, org.glassfish.grizzly.filterchain.FilterChainBuilder filterChainBuilder)
NetworkListener
getNetworkListener()
-
Methods inherited from class org.glassfish.grizzly.config.GenericGrizzlyListener
configure, configureAjpSupport, configureCometSupport, configureCompressionEncodings, configureContentEncodings, configureDefaultThreadPoolConfigs, configureHSTSSupport, configureHttp2Support, configureHttpFileCache, configureHttpProtocol, configureKeepAlive, configureSsl, configureSubProtocol, configureTCPTransport, configureThreadPoolConfig, configureUDPTransport, configureWebSocketSupport, createHttpServerCodecFilter, createMockListener, destroy, getAdapter, getAddress, getFilters, getFilters, getHttpHandler, getHttpServerFilterConfiguration, getName, getPort, getPortRange, getTransport, isAjpEnabled, isCometEnabled, isHttp2Enabled, isSpdyEnabled, isWebSocketEnabled, processDynamicConfigurationChange, setAddress, setName, setPort, setPortRange, start, startDelayedExecutor, stop, stopDelayedExecutor
-
-
-
-
Constructor Detail
-
ServiceInitializerListener
public ServiceInitializerListener(GrizzlyService grizzlyService, NetworkListener networkListener, Logger logger)
-
-
Method Detail
-
getNetworkListener
public NetworkListener getNetworkListener()
-
configureTransport
protected void configureTransport(NetworkListener networkListener, Transport transportConfig, org.glassfish.grizzly.filterchain.FilterChainBuilder filterChainBuilder)
- Overrides:
configureTransport
in classGenericGrizzlyListener
-
configureProtocol
protected void configureProtocol(org.glassfish.hk2.api.ServiceLocator habitat, NetworkListener networkListener, Protocol protocol, org.glassfish.grizzly.filterchain.FilterChainBuilder filterChainBuilder)
- Overrides:
configureProtocol
in classGenericGrizzlyListener
-
configureThreadPool
protected void configureThreadPool(org.glassfish.hk2.api.ServiceLocator habitat, NetworkListener networkListener, ThreadPool threadPool)
- Overrides:
configureThreadPool
in classGenericGrizzlyListener
-
-