Module io.jooby
Package io.jooby

Interface Extension

All Known Implementing Classes:
GracefulShutdown, OpenAPIModule

public interface Extension
Simple extension contract for adding and reusing commons application infrastructure components and/or integrate with external libraries.

Extensions are expected to work via side-effects.

Since:
2.0.0
Author:
edgar
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    install(Jooby application)
    Install, configure additional features to a Jooby application.
    default boolean
    True when extension needs to run while starting the application.
  • Method Details

    • lateinit

      default boolean lateinit()
      True when extension needs to run while starting the application. Defaults is false, starts immediately.
      Returns:
      True when extension needs to run while starting the application. Defaults is false, starts immediately.
    • install

      void install(@NonNull Jooby application) throws Exception
      Install, configure additional features to a Jooby application.
      Parameters:
      application - Jooby application.
      Throws:
      Exception - If something goes wrong.