Class InjectWebServletFactory

java.lang.Object
net.mcbrawls.inject.spring.InjectWebServletFactory

public final class InjectWebServletFactory extends Object
Used to configure Jetty with Spring.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.springframework.boot.web.embedded.jetty.JettyServletWebServerFactory
    create(net.mcbrawls.inject.api.InjectPlatform injectPlatform, int port, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.embedded.jetty.JettyServerCustomizer> serverCustomizers)
    Creates a Jetty web server factory and registers it to the given platform.
    static org.springframework.boot.web.embedded.jetty.JettyServletWebServerFactory
    create(net.mcbrawls.inject.api.InjectPlatform injectPlatform, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.embedded.jetty.JettyServerCustomizer> serverCustomizers)
    Creates a Jetty web server factory with port 0 (only used for logging purposes) and registers it to the given platform.

    Methods inherited from class java.lang.Object

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

    • create

      public static org.springframework.boot.web.embedded.jetty.JettyServletWebServerFactory create(net.mcbrawls.inject.api.InjectPlatform injectPlatform, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.embedded.jetty.JettyServerCustomizer> serverCustomizers)
      Creates a Jetty web server factory with port 0 (only used for logging purposes) and registers it to the given platform.
      Parameters:
      injectPlatform - the platform
      Returns:
      the factory
    • create

      public static org.springframework.boot.web.embedded.jetty.JettyServletWebServerFactory create(net.mcbrawls.inject.api.InjectPlatform injectPlatform, int port, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.embedded.jetty.JettyServerCustomizer> serverCustomizers)
      Creates a Jetty web server factory and registers it to the given platform.
      Parameters:
      injectPlatform - the platform
      port - the port to be used for logging
      Returns:
      the factory