java.lang.Object
org.jooq.impl.DefaultMigrationListenerProvider
- All Implemented Interfaces:
Serializable
,MigrationListenerProvider
public class DefaultMigrationListenerProvider
extends Object
implements MigrationListenerProvider, Serializable
A default implementation for
MigrationListenerProvider
.
This implementation just wraps an instance of MigrationListener
, always
providing the same.
- Author:
- Lukas Eder
- See Also:
-
Constructor Summary
ConstructorDescriptionCreate a new provider instance from an argument listener. -
Method Summary
Modifier and TypeMethodDescriptionfinal MigrationListener
provide()
Provide anMigrationListener
instance.static MigrationListenerProvider[]
providers
(MigrationListener... listeners) Convenience method to construct an array ofDefaultMigrationListenerProvider
from an array ofMigrationListener
instances.toString()
-
Constructor Details
-
DefaultMigrationListenerProvider
Create a new provider instance from an argument listener.- Parameters:
listener
- The argument listener.
-
-
Method Details
-
providers
Convenience method to construct an array ofDefaultMigrationListenerProvider
from an array ofMigrationListener
instances. -
provide
Description copied from interface:MigrationListenerProvider
Provide anMigrationListener
instance.Implementations are free to choose whether this method returns new instances at every call or whether the same instance is returned repetitively.
An
MigrationListener
shall be provided exactly once perMigration
execution lifecycle, i.e. perMigrationContext
.- Specified by:
provide
in interfaceMigrationListenerProvider
- Returns:
- An
MigrationListener
instance. - See Also:
-
toString
-