Package net.mcbrawls.inject.spring
Class InjectWebServletFactory
java.lang.Object
net.mcbrawls.inject.spring.InjectWebServletFactory
Used to configure Jetty with Spring.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.boot.web.embedded.jetty.JettyServletWebServerFactorycreate(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.JettyServletWebServerFactorycreate(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.
-
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 platformport- the port to be used for logging- Returns:
- the factory
-