Package io.dropwizard.server
Interface ServerFactory
-
- All Superinterfaces:
Discoverable
- All Known Implementing Classes:
AbstractServerFactory,DefaultServerFactory,SimpleServerFactory
public interface ServerFactory extends Discoverable
A factory for buildingServerinstances for Dropwizard applications.- See Also:
DefaultServerFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.jetty.server.Serverbuild(Environment environment)Build a server for the given Dropwizard application.voidconfigure(Environment environment)Configures the given environment with settings defined in the factory.
-
-
-
Method Detail
-
build
org.eclipse.jetty.server.Server build(Environment environment)
Build a server for the given Dropwizard application.- Parameters:
environment- the application's environment- Returns:
- a
Serverrunning the Dropwizard application
-
configure
void configure(Environment environment)
Configures the given environment with settings defined in the factory.- Parameters:
environment- the application's environment
-
-