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
ConstructorsConstructorDescriptionCreate a new provider instance from an argument listener. -
Method Summary
Modifier and TypeMethodDescriptionfinal MigrationListenerprovide()Provide anMigrationListenerinstance.static MigrationListenerProvider[]providers(MigrationListener... listeners) Convenience method to construct an array ofDefaultMigrationListenerProviderfrom an array ofMigrationListenerinstances.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 ofDefaultMigrationListenerProviderfrom an array ofMigrationListenerinstances. -
provide
Description copied from interface:MigrationListenerProviderProvide anMigrationListenerinstance.Implementations are free to choose whether this method returns new instances at every call or whether the same instance is returned repetitively.
An
MigrationListenershall be provided exactly once perMigrationexecution lifecycle, i.e. perMigrationContext.- Specified by:
providein interfaceMigrationListenerProvider- Returns:
- An
MigrationListenerinstance. - See Also:
-
toString
-