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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <U> EmbeddedPostgresPreparer<U>
noOp()
Returns a typed instance of a no-op (do nothing) preparer.void
Callback to customize a given object instance.
-
Method Details
-
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
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.
-