Package io.dropwizard.migrations
Class MigrationsBundle<T extends Configuration>
java.lang.Object
io.dropwizard.migrations.MigrationsBundle<T>
- All Implemented Interfaces:
ConfiguredBundle<T>
,DatabaseConfiguration<T>
public abstract class MigrationsBundle<T extends Configuration>
extends Object
implements ConfiguredBundle<T>, DatabaseConfiguration<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIf overridden, enters a newScope
, in which the provided objects are available.final void
initialize
(Bootstrap<?> bootstrap) Initializes the application bootstrap.name()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.dropwizard.core.ConfiguredBundle
run
Methods inherited from interface io.dropwizard.db.DatabaseConfiguration
getDataSourceFactory
-
Constructor Details
-
MigrationsBundle
public MigrationsBundle()
-
-
Method Details
-
initialize
Description copied from interface:ConfiguredBundle
Initializes the application bootstrap.- Specified by:
initialize
in interfaceConfiguredBundle<T extends Configuration>
- Parameters:
bootstrap
- the application bootstrap
-
getMigrationsFileName
-
name
-
getScopedObjects
If overridden, enters a newScope
, in which the provided objects are available.- Returns:
- the objects introduced in the created child
Scope
-