Interface ServerFactory

All Superinterfaces:
Discoverable
All Known Implementing Classes:
AbstractServerFactory, DefaultServerFactory, SimpleServerFactory

public interface ServerFactory extends Discoverable
A factory for building Server instances for Dropwizard applications.
See Also:
  • Method Summary

    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 Details

    • 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