Class Application

java.lang.Object
org.springframework.boot.web.servlet.support.SpringBootServletInitializer
org.rockhopper.smarthome.wes.jwes.simulator.Application
All Implemented Interfaces:
org.springframework.web.WebApplicationInitializer

@SpringBootApplication @EnableConfigurationProperties(NettyProperties.class) public class Application extends org.springframework.boot.web.servlet.support.SpringBootServletInitializer
Spring Java Configuration and Bootstrap
Author:
Jibeom Jung
  • Field Summary

    Fields inherited from class org.springframework.boot.web.servlet.support.SpringBootServletInitializer

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.netty.channel.nio.NioEventLoopGroup
     
    protected org.springframework.boot.builder.SpringApplicationBuilder
    configure(org.springframework.boot.builder.SpringApplicationBuilder application)
     
    static void
    main(String[] args)
     
    Map<io.netty.channel.ChannelOption<?>,Object>
     
    io.netty.bootstrap.ServerBootstrap
     
     
    io.netty.channel.nio.NioEventLoopGroup
     

    Methods inherited from class org.springframework.boot.web.servlet.support.SpringBootServletInitializer

    createRootApplicationContext, createSpringApplicationBuilder, deregisterJdbcDrivers, onStartup, run, setRegisterErrorPageFilter, shutDownSharedReactorSchedulers

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Application

      public Application()
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • configure

      protected org.springframework.boot.builder.SpringApplicationBuilder configure(org.springframework.boot.builder.SpringApplicationBuilder application)
      Overrides:
      configure in class org.springframework.boot.web.servlet.support.SpringBootServletInitializer
    • tcpServerBootstrap

      @Bean(name="tcpServerBootstrap") public io.netty.bootstrap.ServerBootstrap tcpServerBootstrap()
    • tcpChannelOptions

      @Bean public Map<io.netty.channel.ChannelOption<?>,Object> tcpChannelOptions()
    • bossGroup

      @Bean(destroyMethod="shutdownGracefully") public io.netty.channel.nio.NioEventLoopGroup bossGroup()
    • workerGroup

      @Bean(destroyMethod="shutdownGracefully") public io.netty.channel.nio.NioEventLoopGroup workerGroup()
    • tcpSocketAddress

      @Bean public InetSocketAddress tcpSocketAddress()