Package io.dropwizard.core.server
Interface ServerFactory
-
- All Superinterfaces:
Discoverable
- All Known Implementing Classes:
AbstractServerFactory
,DefaultServerFactory
,SimpleServerFactory
public interface ServerFactory extends Discoverable
A factory for buildingServer
instances for Dropwizard applications.- See Also:
DefaultServerFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.jetty.server.Server
build(Environment environment)
Build a server for the given Dropwizard application.void
configure(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
Server
running the Dropwizard application
-
configure
void configure(Environment environment)
Configures the given environment with settings defined in the factory.- Parameters:
environment
- the application's environment
-
-