Interface EmbeddedPostgresPreparer<T>

Type Parameters:
T - The object type to be prepared.
All Known Implementing Classes:
FlywayPreparer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

Prepare a specific object instance. This allows user interaction to modify or tweak an instance before it is used.

Allows e.g. for preparation of data sources, postgres instances and other places where additional degrees of customization are needed.

Since:
3.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a typed instance of a no-op (do nothing) preparer.
    void
    prepare(T element)
    Callback to customize a given object instance.
  • Method Details

    • noOp

      static <U> EmbeddedPostgresPreparer<U> noOp()
      Returns a typed instance of a no-op (do nothing) preparer.
      Type Parameters:
      U - The type to use.
      Returns:
      a Do-nothing preparer.
    • prepare

      void prepare(@Nonnull T element) throws IOException, SQLException
      Callback to customize a given object instance.
      Parameters:
      element - The instance. Must never be null. Any method on the builder can be called.
      Throws:
      SQLException - For any SQL related problems.
      IOException - For any IO related problem.